diff --git a/ui/src/stores/main.ts b/ui/src/stores/main.ts index f461971..a27e289 100644 --- a/ui/src/stores/main.ts +++ b/ui/src/stores/main.ts @@ -186,6 +186,9 @@ export const useMainStore = defineStore('main', { handleError(message: string, error: unknown) { if (error instanceof AxiosError && error.response) { console.error(message, ':', error.response.status, error.response.statusText) + if (error.response.data.detail) { + message = message + ': ' + error.response.data.detail + } } else { console.error(message, ':', error) }