contracts_manager, deployment: Emit outputError whenever build error or deployment error happens.

Emit outputError when:
 * contracts cannot be built
 * contracts cannot be deployed

Refs: https://github.com/embark-framework/embark/issues/946
This commit is contained in:
Cryptomental 2018-10-01 22:55:45 +02:00 committed by Pascal Precht
parent 64c6f58497
commit 78c5055902
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
2 changed files with 2 additions and 0 deletions

View File

@ -296,6 +296,7 @@ class ContractsManager {
if (err) {
self.compileError = true;
self.events.emit("status", __("Compile/Build error"));
self.events.emit("outputError", __("Error building Dapp, please check console"));
self.logger.error(__("Error Compiling/Building contracts: ") + err);
}else{
self.compileError = false;

View File

@ -86,6 +86,7 @@ class DeployManager {
if (errors.length) {
_err = __("Error deploying contracts. Please fix errors to continue.");
self.logger.error(_err);
self.events.emit("outputError", __("Error deploying contracts, please check console"));
return done(_err);
}
if (contracts.length === 0) {