We know there could be a 401 response so we handle it

This commit is contained in:
2019-11-03 15:04:14 +01:00
parent 9308d4ea9b
commit 500b75eaf6

View File

@@ -116,6 +116,11 @@ class TMDB {
status: 404,
message: error.response.body.status_message
}
} else if (error.status === 401) {
throw {
status: 401,
message: error.response.body.status_message
}
}
throw {