FIX: Show error message if message exists

This commit is contained in:
Gerhard Schlager 2019-05-09 22:12:51 +02:00
parent b380ed5282
commit 34684af195
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ export function extractError(error, defaultMessage) {
parsedError = parsedJSON.errors.join("<br>");
} else if (parsedJSON.error) {
parsedError = parsedJSON.error;
} else if (parsedJSON.message) {
parsedError = parsedJSON.message;
} else if (parsedJSON.failed) {
parsedError = parsedJSON.failed;
}