mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
Join together all errors if mulitple
This commit is contained in:
parent
05010b6b33
commit
130d6a3a26
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue