From e4af12e5c02d873479749928442f7dbcafe22ff3 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Mon, 2 May 2022 14:06:58 +0100 Subject: [PATCH] Added additional ghostErrorCode note for the major refs: https://github.com/TryGhost/Toolbox/issues/316 - getting ready to do a major bump --- ghost/mw-error-handler/lib/mw-error-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/mw-error-handler/lib/mw-error-handler.js b/ghost/mw-error-handler/lib/mw-error-handler.js index 61e2173779..539d9c9b65 100644 --- a/ghost/mw-error-handler/lib/mw-error-handler.js +++ b/ghost/mw-error-handler/lib/mw-error-handler.js @@ -129,8 +129,8 @@ const jsonErrorRendererV2 = (err, req, res, next) => { // eslint-disable-line no property: err.property || null, help: err.help || null, code: err.code || null, - id: err.id || null, - ghostErrorCode: err.ghostErrorCode || null + id: err.id || null + // @TODO: add ghostErrorCode here in a major (I thought V2 was for the V2 api, but it's actually the newer/correct handler) }] }); };