add error message if no connection
This commit is contained in:
parent
86f1cf51d2
commit
36c6de4b99
|
@ -142,7 +142,9 @@ class Test {
|
|||
if (this.options.node === 'embark') {
|
||||
return this.engine.ipc.connect((err) => {
|
||||
if (err) {
|
||||
return this.engine.logger.error(err.message || err);
|
||||
this.engine.logger.error(err.message || err);
|
||||
this.engine.logger.error("Could not connect to Embark's IPC. Is embark running?");
|
||||
process.exit(1);
|
||||
}
|
||||
this.engine.ipc.request('blockchain:node', {}, (err, node) => {
|
||||
if (err) {
|
||||
|
|
|
@ -16,7 +16,6 @@ class TestLogger {
|
|||
if (!(this.shouldLog('error'))) {
|
||||
return;
|
||||
}
|
||||
console.error(txt);
|
||||
this.logFunction(txt.red);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue