FIX: Return 'failed' attribute when catching an ajax error and the attribute is present

This commit is contained in:
romanrizzi 2019-04-25 14:49:52 -03:00
parent 230e111e87
commit 34b772575e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function extractError(error, defaultMessage) {
} else if (parsedJSON.error) { } else if (parsedJSON.error) {
parsedError = parsedJSON.error; parsedError = parsedJSON.error;
} else if (parsedJSON.failed) { } else if (parsedJSON.failed) {
parsedError = parsedJSON.message; parsedError = parsedJSON.failed;
} }
} }