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
This commit is contained in:
kirrg001 2018-06-04 12:12:37 +02:00
parent 0ccc24bf11
commit f24dbff47d

View File

@ -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);