mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 19:33:02 +03:00
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:
parent
0ccc24bf11
commit
f24dbff47d
2
index.js
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user