diff --git a/lib/deploy.js b/lib/deploy.js index 9731a28a1..36b281e09 100644 --- a/lib/deploy.js +++ b/lib/deploy.js @@ -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;