Skip to content

Commit

Permalink
Display 500 errors via a snack (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed May 26, 2019
1 parent 67493c6 commit 05a1aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/apiAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const initAxios = (currentUser: CurrentUser, snack: SnackReporter) => {
currentUser.tryAuthenticate().then(() => snack('Could not complete request.'));
}

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

Expand Down

0 comments on commit 05a1aa2

Please sign in to comment.