Skip to content

Commit 05a1aa2

Browse files
authored
Display 500 errors via a snack (#193)
1 parent 67493c6 commit 05a1aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/apiAuth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const initAxios = (currentUser: CurrentUser, snack: SnackReporter) => {
2020
currentUser.tryAuthenticate().then(() => snack('Could not complete request.'));
2121
}
2222

23-
if (status === 400) {
23+
if (status === 400 || status === 403 || status === 500) {
2424
snack(error.response.data.error + ': ' + error.response.data.errorDescription);
2525
}
2626

0 commit comments

Comments
 (0)