Fix error handling for HTTP.request() with responseType: 'document'
This commit is contained in:
parent
9202ab8b3c
commit
0df967418b
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ Zotero.HTTP = new function() {
|
|||
deferred.resolve(xmlhttp);
|
||||
} else {
|
||||
let msg = "HTTP " + method + " " + dispURL + " failed with status code " + xmlhttp.status;
|
||||
if (xmlhttp.responseText) {
|
||||
if (!xmlhttp.responseType && xmlhttp.responseText) {
|
||||
msg += ":\n\n" + xmlhttp.responseText;
|
||||
}
|
||||
Zotero.debug(msg, 1);
|
||||
|
|
Loading…
Reference in a new issue