Merge pull request #922 from embark-framework/bugfix/undefined-printed

Remove undefined printed
This commit is contained in:
Iuri Matias 2018-09-29 19:29:59 -04:00 committed by GitHub
commit 86057f29d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,12 +233,7 @@ class EmbarkController {
callback(err, true);
});
}
], function (err, canExit) {
if (err) {
engine.logger.error(err.message);
engine.logger.debug(err.stack);
}
], function (_err, canExit) {
// TODO: this should be moved out and determined somewhere else
if (canExit || !engine.config.contractsConfig.afterDeploy || !engine.config.contractsConfig.afterDeploy.length) {
process.exit();