mirror of https://github.com/embarklabs/embark.git
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:
parent
a59ec4e91f
commit
79d8dc8dca
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue