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