mirror of https://github.com/embarklabs/embark.git
fix: improve wording on contract constructor failing
This commit is contained in:
parent
7a76516534
commit
ea7ae22501
|
@ -73,9 +73,10 @@ class DeployManager {
|
|||
self.events.request('deploy:contract', contract, (err) => {
|
||||
if (err) {
|
||||
contract.error = err.message || err;
|
||||
self.logger.error(`[${contract.className}]: ${err.message || err}`);
|
||||
if (contract.error === constants.blockchain.gasAllowanceError) {
|
||||
self.logger.error(constants.blockchain.gasAllowanceErrorMessage);
|
||||
self.logger.error(`[${contract.className}]: ${constants.blockchain.gasAllowanceErrorMessage}`);
|
||||
} else {
|
||||
self.logger.error(`[${contract.className}]: ${err.message || err}`);
|
||||
}
|
||||
errors.push(err);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue