From 2bb24881887e0536ba587879d86e5f6eff8e5771 Mon Sep 17 00:00:00 2001 From: Cameron Crothers Date: Wed, 26 Oct 2016 10:57:09 +1100 Subject: [PATCH] Put error message in output The current error handler only shows a stack trace and not the error message from the actual error. I see this when using Hoek.assert etc to pre-check on module load, this change will assist in knowing what the thrown error was. --- lib/start-failed.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/start-failed.js b/lib/start-failed.js index f7f6a095e..de115e281 100644 --- a/lib/start-failed.js +++ b/lib/start-failed.js @@ -39,6 +39,7 @@ module.exports = function startFailed(err) { ${serverStartError.message} ${serverStartError.description} ${ErrorCommon.fileIssue} + ${Chalk.bold.red(err.message)} `; console.error(errDetail); // eslint-disable-line