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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user