From 9b45ea6f7da2b733289f8ac9be9d8511856d2392 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Wed, 4 Nov 2020 14:00:59 +0000 Subject: [PATCH] Added original error to logged error message - without this, the original error stacktrace is hidden which makes issues harder to track down --- core/server/web/shared/middlewares/custom-redirects.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/server/web/shared/middlewares/custom-redirects.js b/core/server/web/shared/middlewares/custom-redirects.js index 5c4216bb68..2020da4753 100644 --- a/core/server/web/shared/middlewares/custom-redirects.js +++ b/core/server/web/shared/middlewares/custom-redirects.js @@ -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 })); } }