add error message if no connection

This commit is contained in:
Jonathan Rainville 2018-08-23 13:01:22 -04:00
parent 86f1cf51d2
commit 36c6de4b99
2 changed files with 3 additions and 2 deletions

View File

@ -142,7 +142,9 @@ class Test {
if (this.options.node === 'embark') { if (this.options.node === 'embark') {
return this.engine.ipc.connect((err) => { return this.engine.ipc.connect((err) => {
if (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) => { this.engine.ipc.request('blockchain:node', {}, (err, node) => {
if (err) { if (err) {

View File

@ -16,7 +16,6 @@ class TestLogger {
if (!(this.shouldLog('error'))) { if (!(this.shouldLog('error'))) {
return; return;
} }
console.error(txt);
this.logFunction(txt.red); this.logFunction(txt.red);
} }