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
64c6f58497
commit
78c5055902
|
@ -296,6 +296,7 @@ class ContractsManager {
|
||||||
if (err) {
|
if (err) {
|
||||||
self.compileError = true;
|
self.compileError = true;
|
||||||
self.events.emit("status", __("Compile/Build error"));
|
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);
|
self.logger.error(__("Error Compiling/Building contracts: ") + err);
|
||||||
}else{
|
}else{
|
||||||
self.compileError = false;
|
self.compileError = false;
|
||||||
|
|
|
@ -86,6 +86,7 @@ class DeployManager {
|
||||||
if (errors.length) {
|
if (errors.length) {
|
||||||
_err = __("Error deploying contracts. Please fix errors to continue.");
|
_err = __("Error deploying contracts. Please fix errors to continue.");
|
||||||
self.logger.error(_err);
|
self.logger.error(_err);
|
||||||
|
self.events.emit("outputError", __("Error deploying contracts, please check console"));
|
||||||
return done(_err);
|
return done(_err);
|
||||||
}
|
}
|
||||||
if (contracts.length === 0) {
|
if (contracts.length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue