Return error detail first
This commit is contained in:
@@ -12,6 +12,10 @@ export const getApiErrorMessage = (error: any): string => {
|
||||
}
|
||||
}
|
||||
|
||||
if (error && error.detail) {
|
||||
return error.detail;
|
||||
}
|
||||
|
||||
if (error && error.title) {
|
||||
return error.title;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user