0
0
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:
Víctor Losada Hernández
2024-02-15 16:56:09 +01:00
parent eb404b8e5b
commit 8c07b12bb0

View File

@@ -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);
}
},