From b76a6a1eee8a65af690ae17471f92f12e5f24179 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Mon, 3 Aug 2020 23:16:53 +1200 Subject: [PATCH] Reduced error level to default for not found post error refs #12064 - `critical` is meant to be something unpredictable like internal error, something worthy attention, as described in Ignition -https://github.com/TryGhost/Ignition/blob/3439456d941753adf25c67b0d6ea29e61f214f68/README.md#list-of-errors - This error level was introduced with - this PR https://github.com/TryGhost/Ghost/pull/9426, but there is no context provided why this specific value was used. Assuming it's an outdated value as 'not found' is nowhere to be treated in any special way --- core/server/models/relations/authors.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/server/models/relations/authors.js b/core/server/models/relations/authors.js index 777d2a4a6b..7617a8b2aa 100644 --- a/core/server/models/relations/authors.js +++ b/core/server/models/relations/authors.js @@ -353,7 +353,6 @@ module.exports.extendModel = function extendModel(Post, Posts, ghostBookshelf) { .then(function then(foundPostModel) { if (!foundPostModel) { throw new errors.NotFoundError({ - level: 'critical', message: i18n.t('errors.models.post.postNotFound') }); }