Merge branch '502-alert' into 'develop'

Return detailed alert on HTTP 502

See merge request soapbox-pub/soapbox-fe!513
datepicker-css
Alex Gleason 2021-05-22 01:33:05 +00:00
commit 1c7e555741
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -35,6 +35,10 @@ export function showAlertForError(error) {
if (error.response) {
const { data, status, statusText } = error.response;
if (status === 502) {
return showAlert('', 'The server is down', 'error');
}
if (status === 404 || status === 410) {
// Skip these errors as they are reflected in the UI
return {};