clarify web3 error msg

This commit is contained in:
Iuri Matias 2016-10-22 11:57:36 -04:00
parent bcdba3f8bc
commit f337ffd418
1 changed files with 2 additions and 2 deletions

View File

@ -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;