From d11d196554eb954e9115e7e3c407b0480240f275 Mon Sep 17 00:00:00 2001 From: Pierre Vanoverschelde Date: Tue, 30 Jul 2024 01:42:35 +0200 Subject: [PATCH] refactor: update log errors --- package.json | 2 +- src/utils/logErrors.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e0a2303..ffe7afa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "whatson-api", - "version": "2.6.12", + "version": "2.6.13", "description": "What's on? API to retrieve movies and tvshows", "main": "index.js", "scripts": { diff --git a/src/utils/logErrors.js b/src/utils/logErrors.js index a4f1fa1..7a6faa7 100644 --- a/src/utils/logErrors.js +++ b/src/utils/logErrors.js @@ -48,7 +48,8 @@ const logErrors = (error, item, origin) => { errorMsg && !( errorMsg.startsWith(config.baseURLBetaseriesFilm) || - errorMsg.startsWith(config.baseURLBetaseriesSerie) + errorMsg.startsWith(config.baseURLBetaseriesSerie) || + (errorMsg.includes("403") && errorMsg.includes("getMetacriticRating")) ) ) { process.exit(1);