Skip to content

Commit

Permalink
Correct error message toast
Browse files Browse the repository at this point in the history
  • Loading branch information
NHAS committed Nov 24, 2024
1 parent 5e1f467 commit 49a0f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminui/frontend/src/composables/useToastError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function useToastError() {
const catcher = (e: any, prefixString: string = '') => {
let errorString = 'Unknown Error'
if (e instanceof AxiosError) {
errorString = e.response?.data?.message
errorString = e.response?.data?.message ?? e.message
} else if (e instanceof Error) {
errorString = e.message
}
Expand Down

0 comments on commit 49a0f90

Please sign in to comment.