0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-01 21:42:44 +00:00

debugging 500 errir catching

This commit is contained in:
Víctor Losada Hernández
2024-05-06 23:26:02 +02:00
parent e75c556443
commit 51fcb59f09
2 changed files with 2 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ const archive = {
return res.json({ brews, page, totalPages, totalBrews });
} catch (error) {
console.error(error);
console.log('error status number: ', error.response.status);
if (error.response && error.response.status === 503) {
return res
.status(503)