Better handling of file uploads
This commit is contained in:
parent
f561089cad
commit
b4c64d3dc0
3 changed files with 32 additions and 34 deletions
|
@ -66,6 +66,11 @@ export function httpErrorToHuman (error: any): string {
|
|||
if (data.errors && data.errors[0] && data.errors[0].detail) {
|
||||
return data.errors[0].detail;
|
||||
}
|
||||
|
||||
// Errors from wings directory, mostly just for file uploads.
|
||||
if (data.error && typeof data.error === 'string') {
|
||||
return data.error;
|
||||
}
|
||||
}
|
||||
|
||||
return error.message;
|
||||
|
|
Reference in a new issue