From a871f8977aad575a1f4caa85396fb809164b1384 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 8 Nov 2006 04:30:51 +0000 Subject: [PATCH] Error when repository can't be contacted --- chrome/content/zotero/xpcom/schema.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/schema.js b/chrome/content/zotero/xpcom/schema.js index beb2babed..39afa355c 100644 --- a/chrome/content/zotero/xpcom/schema.js +++ b/chrome/content/zotero/xpcom/schema.js @@ -390,11 +390,16 @@ Zotero.Schema = new function(){ **/ function _updateScrapersRemoteCallback(xmlhttp){ if (!xmlhttp.responseXML){ - if (xmlhttp.status>1000){ - Zotero.debug('No network connection', 2); + try { + if (xmlhttp.status>1000){ + Zotero.debug('No network connection', 2); + } + else { + Zotero.debug('Invalid response from repository', 2); + } } - else { - Zotero.debug('Invalid response from repository', 2); + catch (e){ + Zotero.debug('Repository cannot be contacted'); } _setRepositoryTimer(ZOTERO_CONFIG['REPOSITORY_RETRY_INTERVAL']); return false;