0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-09 05:28:39 +00:00
This commit is contained in:
Víctor Losada Hernández
2024-02-15 16:36:10 +01:00
parent f61b664687
commit 2a780bc482
+1 -1
View File
@@ -49,7 +49,7 @@ const archive = {
return res.json({ brews, page, totalPages, totalBrews});
} catch (error) {
console.error(error);
console.log(error.response);
console.log(error);
if (error.response && error.response.status === 404) {
return res.status(404).json({ errorCode: '404', message: 'Brews not found' });
}