mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-22 21:29:14 +00:00
clarify gas amount msg
This commit is contained in:
parent
ae3bcb1060
commit
bcdba3f8bc
@ -123,8 +123,12 @@ Deploy.prototype.deployContract = function(contract, params, callback) {
|
||||
|
||||
if (err) {
|
||||
self.logger.error("error deploying contract: " + contract.className);
|
||||
self.logger.error(err.toString());
|
||||
contract.error = err.toString();
|
||||
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';
|
||||
}
|
||||
self.logger.error(errMsg);
|
||||
contract.error = errMsg;
|
||||
callback(new Error(err));
|
||||
} else if (transaction.address !== undefined) {
|
||||
self.logger.info(contract.className + " deployed at " + transaction.address);
|
||||
|
Loading…
x
Reference in New Issue
Block a user