FIX: Return 'failed' attribute when catching an ajax error and the attribute is present
This commit is contained in:
parent
230e111e87
commit
34b772575e
|
@ -35,7 +35,7 @@ export function extractError(error, defaultMessage) {
|
|||
} else if (parsedJSON.error) {
|
||||
parsedError = parsedJSON.error;
|
||||
} else if (parsedJSON.failed) {
|
||||
parsedError = parsedJSON.message;
|
||||
parsedError = parsedJSON.failed;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue