Add "Please try again in a few minutes." to empty and invalid server response messages
This commit is contained in:
parent
a92b4b1e80
commit
0e80fb29c4
1 changed files with 4 additions and 2 deletions
|
@ -1683,14 +1683,16 @@ Zotero.Sync.Server = new function () {
|
|||
_error("SSL connection error");
|
||||
}
|
||||
}
|
||||
_error('Empty response from server');
|
||||
// TODO: localize
|
||||
_error('Empty response from server. Please try again in a few minutes.');
|
||||
}
|
||||
|
||||
if (!xmlhttp.responseXML || !xmlhttp.responseXML.childNodes[0] ||
|
||||
xmlhttp.responseXML.childNodes[0].tagName != 'response' ||
|
||||
!xmlhttp.responseXML.childNodes[0].firstChild) {
|
||||
Zotero.debug(xmlhttp.responseText);
|
||||
_error('Invalid response from server', xmlhttp.responseText);
|
||||
// TODO: localize
|
||||
_error('Invalid response from server. Please try again in a few minutes.', xmlhttp.responseText);
|
||||
}
|
||||
|
||||
var firstChild = xmlhttp.responseXML.firstChild.firstChild;
|
||||
|
|
Loading…
Add table
Reference in a new issue