commit f22e8ef4fbd8742a7a99e0aab3b3d0d4fdd20451
parent fbf2764ef80d3e77db00f5bdc210839c470042f1
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 18 Mar 2014 16:57:56 -0400
Ignore 404 on S3 file download
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js
@@ -813,6 +813,11 @@ Zotero.Sync.Storage.ZFS = (function () {
+ " in Zotero.Sync.Storage.ZFS.downloadFile()";
Zotero.debug(msg, 1);
Components.utils.reportError(msg);
+ // Ignore files not found in S3
+ if (status == 404) {
+ deferred.resolve(false);
+ return;
+ }
try {
Zotero.debug(Zotero.File.getContents(destFile, null, 4096), 1);
}