From f24dbff47d7fffe981380f704b56de3baa389fb0 Mon Sep 17 00:00:00 2001 From: kirrg001 Date: Mon, 4 Jun 2018 12:12:37 +0200 Subject: [PATCH] Fixed telling Ignition on Ghost start to inherit from a native error message no issue - this is a fix when starting Ghost and it cannot start because of a native error - it could happen that a third library returns a native error, which will then be wrapped into an Ignition error - we should tell Ignition to inherit from the error message, otherwise the error message is for example not directly visible in the CLI --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 25c64f52fc..609bcd91fc 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ ghost().then(function (ghostServer) { }); }).catch(function (err) { if (!common.errors.utils.isIgnitionError(err)) { - err = new common.errors.GhostError({err: err}); + err = new common.errors.GhostError({message: err.message, err: err}); } common.logging.error(err);