From 0e80fb29c472ad3a4fe28246c56c748a37c3bc99 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 5 Mar 2010 08:26:15 +0000 Subject: [PATCH] Add "Please try again in a few minutes." to empty and invalid server response messages --- chrome/content/zotero/xpcom/sync.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index f4d5c5f05f..8e1883e89f 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -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;