clarify web3 error msg
This commit is contained in:
parent
bcdba3f8bc
commit
f337ffd418
|
@ -124,8 +124,8 @@ Deploy.prototype.deployContract = function(contract, params, callback) {
|
|||
if (err) {
|
||||
self.logger.error("error deploying contract: " + contract.className);
|
||||
var errMsg = err.toString();
|
||||
if (errMsg === 'The contract code couldn\'t be stored, please check your gas amount.') {
|
||||
errMsg = 'The contract code couldn\'t be stored, this could be due to the gas amount or an error in the contract constructor code';
|
||||
if (errMsg === 'Error: The contract code couldn\'t be stored, please check your gas amount.') {
|
||||
errMsg = 'The contract code couldn\'t be stored, out of gas or constructor error';
|
||||
}
|
||||
self.logger.error(errMsg);
|
||||
contract.error = errMsg;
|
||||
|
|
Loading…
Reference in New Issue