mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-27 07:12:39 +00:00
catch error codes
This commit is contained in:
@@ -114,10 +114,7 @@ const ArchivePage = createClass({
|
||||
}
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.response && error.response.status === 503) {
|
||||
console.log('loadPage 503');
|
||||
}
|
||||
this.setState({ error: `${error}` })
|
||||
this.setState({ error: `${error.response.status}` })
|
||||
this.updateStateWithBrews([], 1, 1, 0);
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user