mirror of
https://github.com/gotify/server.git
synced 2026-07-01 01:44:21 +08:00
Display 500 errors via a snack (#193)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user