Fix 'req is undefined' error after consecutive S3 failures

This commit is contained in:
Dan Stillman 2018-10-22 05:30:20 -04:00
parent 053599993b
commit 6abfd3b5b0

View file

@ -669,6 +669,8 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = {
Zotero.debug(this._s3ConsecutiveFailures
+ " consecutive S3 failures -- aborting", 1);
this._s3ConsecutiveFailures = 0;
let e = Zotero.getString('sync.storage.error.zfs.restart', Zotero.appName);
throw new Error(e);
}
else {
let msg = "S3 returned " + e.status + " (" + item.libraryKey + ") "