Ignore 404 on S3 file download

This commit is contained in:
Dan Stillman 2014-03-18 16:57:56 -04:00
parent fbf2764ef8
commit f22e8ef4fb

View File

@ -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);
}