Skip to content

Commit

Permalink
Display 403 errors received from Plait correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludeck committed Jun 4, 2024
1 parent 665b7d4 commit a064fd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/fng-jq-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
let response;
try {
response = JSON.parse(xhr.responseText);
error = response.error || response;
error = response.error || response.message || response;
} catch (e) {
error = xhr.responseText;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/fng-jq-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@
let response;
try {
response = JSON.parse(xhr.responseText);
error = response.error || response;
error = response.error || response.message || response;
} catch (e) {
error = xhr.responseText;
}
Expand Down
Loading

0 comments on commit a064fd5

Please sign in to comment.