mirror of https://github.com/embarklabs/embark.git
stop on error
This commit is contained in:
parent
9f7a932252
commit
4c912b8ecf
|
@ -62,6 +62,7 @@ class DeployManager {
|
|||
self.events.request('deploy:contract', contract, (err) => {
|
||||
if (err) {
|
||||
contract.error = err.message || err;
|
||||
self.logger.error(err.message || err);
|
||||
errors.push(err);
|
||||
}
|
||||
callback();
|
||||
|
@ -80,10 +81,9 @@ class DeployManager {
|
|||
try {
|
||||
async.auto(contractDeploys, function(_err, _results) {
|
||||
if (errors.length) {
|
||||
self.logger.error(__("error deploying contracts"));
|
||||
errors.forEach(error => {
|
||||
self.logger.error(error.message || error);
|
||||
});
|
||||
_err = __("Error deploying contracts. Please fix errors to continue.");
|
||||
self.logger.error(_err);
|
||||
return done(_err);
|
||||
}
|
||||
if (contracts.length === 0) {
|
||||
self.logger.info(__("no contracts found"));
|
||||
|
|
Loading…
Reference in New Issue