mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-22 01:26:54 +00:00
you know the deal
This commit is contained in:
1 parent
3afc9f83d9
commit
04844a4422
1 file changed
+1
@@ -49,6 +49,7 @@ const archive = {
|
||||
return res.json({ brews, page, totalPages, totalBrews});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.log(error.response.status);
|
||||
if (error.response && error.response.status === 404) {
|
||||
return res.status(404).json({ errorCode: '404', message: 'Brews not found' });
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user