Skip to content

Commit

Permalink
refactor: update log errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrevano committed Jul 29, 2024
1 parent 8852552 commit d11d196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 2 additions & 1 deletion src/utils/logErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d11d196

Please sign in to comment.