0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-28 13:32:39 +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

@@ -249,6 +249,7 @@ const ArchivePage = createClass({
},
renderFoundBrews() {
console.table(this.state);
const { title, brewCollection, page, totalPages, error, searching } = this.state;
if(searching) {

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)