From f06a9b9b6fc488fd63647a0d73b3921d7db373e2 Mon Sep 17 00:00:00 2001 From: cahrens Date: Wed, 17 Jul 2019 15:10:10 -0700 Subject: [PATCH 1/2] Fixed error message so that if it is a string and not an object, it prints out the string and not undefined --- bin/magellan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/magellan b/bin/magellan index dfa9907..f844b28 100755 --- a/bin/magellan +++ b/bin/magellan @@ -59,7 +59,7 @@ co(function *() { break; default: - logger.err(`Error while running Magellan: ${err.message}`); + logger.err(`Error while running Magellan: ${err.message || msg}`); logger.err(err.stack); // we exit magellan process by providing code directly process.exit(1); From c148f01d9ad964db758847c6822d67dfb02ccf3c Mon Sep 17 00:00:00 2001 From: cahrens Date: Wed, 17 Jul 2019 15:33:11 -0700 Subject: [PATCH 2/2] Fixed error message so that if it is a string and not an object, it prints out the string and not undefined --- bin/magellan | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/magellan b/bin/magellan index f844b28..6f22100 100755 --- a/bin/magellan +++ b/bin/magellan @@ -59,7 +59,7 @@ co(function *() { break; default: - logger.err(`Error while running Magellan: ${err.message || msg}`); + logger.err(`Error while running Magellan: ${err.message || err}`); logger.err(err.stack); // we exit magellan process by providing code directly process.exit(1);