Skip to content

A platform for community discussion. Free, open, simple.

FIX: Show error message if message exists

Gerhard Schlager34684af19576
diff --git a/app/assets/javascripts/discourse/lib/ajax-error.js.es6 b/app/assets/javascripts/discourse/lib/ajax-error.js.es6
index 5cc5464e54d..de96aa14d8a 100644
--- a/app/assets/javascripts/discourse/lib/ajax-error.js.es6
+++ b/app/assets/javascripts/discourse/lib/ajax-error.js.es6
@@ -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;
}