0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Added original error to logged error message

- without this, the original error stacktrace is hidden which makes
  issues harder to track down
This commit is contained in:
Daniel Lockyer 2020-11-04 14:00:59 +00:00
parent 9f93a0895e
commit 9b45ea6f7d

View file

@ -79,7 +79,8 @@ _private.registerRoutes = () => {
logging.error(new errors.IncorrectUsageError({
message: i18n.t('errors.middleware.redirects.register'),
context: err.message,
help: 'https://ghost.org/docs/api/handlebars-themes/routing/redirects/'
help: 'https://ghost.org/docs/api/handlebars-themes/routing/redirects/',
err
}));
}
}