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