mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 16:24:29 +08:00
Join together all errors if mulitple
This commit is contained in:
parent
05010b6b33
commit
130d6a3a26
@ -28,7 +28,7 @@ function extractError(error) {
|
||||
|
||||
if (parsedJSON) {
|
||||
if (parsedJSON.errors && parsedJSON.errors.length > 0) {
|
||||
parsedError = parsedJSON.errors[0];
|
||||
parsedError = parsedJSON.errors.join("<br>");
|
||||
} else if (parsedJSON.error) {
|
||||
parsedError = parsedJSON.error;
|
||||
} else if (parsedJSON.failed) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user