Return error detail first

This commit is contained in:
2025-11-17 08:59:20 +02:00
parent e1b8a3e8bf
commit 4abdb66f7d

View File

@@ -12,6 +12,10 @@ export const getApiErrorMessage = (error: any): string => {
}
}
if (error && error.detail) {
return error.detail;
}
if (error && error.title) {
return error.title;
}