0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Added additional ghostErrorCode note for the major

refs: https://github.com/TryGhost/Toolbox/issues/316

- getting ready to do a major bump
This commit is contained in:
Hannah Wolfe 2022-05-02 14:06:58 +01:00
parent 470f7b14d0
commit e4af12e5c0

View file

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