Log HTTP error bodies when responseType is explicitly set to 'text'
Previously they were only logged if responseType wasn't set
This commit is contained in:
parent
828ec4010e
commit
e9afd153e9
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ Zotero.HTTP = new function() {
|
|||
deferred.resolve(xmlhttp);
|
||||
} else {
|
||||
let msg = "HTTP " + method + " " + dispURL + " failed with status code " + status;
|
||||
if (!xmlhttp.responseType && xmlhttp.responseText) {
|
||||
if ((!xmlhttp.responseType || xmlhttp.responseType == 'text') && xmlhttp.responseText) {
|
||||
msg += ":\n\n" + xmlhttp.responseText;
|
||||
}
|
||||
Zotero.debug(msg, 1);
|
||||
|
|
Loading…
Reference in a new issue