Error when repository can't be contacted
This commit is contained in:
parent
de3dd85016
commit
a871f8977a
|
@ -390,11 +390,16 @@ Zotero.Schema = new function(){
|
||||||
**/
|
**/
|
||||||
function _updateScrapersRemoteCallback(xmlhttp){
|
function _updateScrapersRemoteCallback(xmlhttp){
|
||||||
if (!xmlhttp.responseXML){
|
if (!xmlhttp.responseXML){
|
||||||
if (xmlhttp.status>1000){
|
try {
|
||||||
Zotero.debug('No network connection', 2);
|
if (xmlhttp.status>1000){
|
||||||
|
Zotero.debug('No network connection', 2);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
Zotero.debug('Invalid response from repository', 2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
catch (e){
|
||||||
Zotero.debug('Invalid response from repository', 2);
|
Zotero.debug('Repository cannot be contacted');
|
||||||
}
|
}
|
||||||
_setRepositoryTimer(ZOTERO_CONFIG['REPOSITORY_RETRY_INTERVAL']);
|
_setRepositoryTimer(ZOTERO_CONFIG['REPOSITORY_RETRY_INTERVAL']);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user