Add "Please try again in a few minutes." to empty and invalid server response messages

This commit is contained in:
Dan Stillman 2010-03-05 08:26:15 +00:00
parent a92b4b1e80
commit 0e80fb29c4

View file

@ -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;