From 36c6de4b99c020497b7a1f910c873571560293aa Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 23 Aug 2018 13:01:22 -0400 Subject: [PATCH] add error message if no connection --- lib/tests/test.js | 4 +++- lib/tests/test_logger.js | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/tests/test.js b/lib/tests/test.js index d4b8e1d2..2bc7e133 100644 --- a/lib/tests/test.js +++ b/lib/tests/test.js @@ -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) { diff --git a/lib/tests/test_logger.js b/lib/tests/test_logger.js index 9d9fe39f..165d20b3 100644 --- a/lib/tests/test_logger.js +++ b/lib/tests/test_logger.js @@ -16,7 +16,6 @@ class TestLogger { if (!(this.shouldLog('error'))) { return; } - console.error(txt); this.logFunction(txt.red); }