commit 4c337e52947acdb6bf2523c276e1b6f4f275d552
parent 6941f96a5a912e980d332db1bcb9c355c5a4720b
Author: Dan Stillman <dstillman@zotero.org>
Date: Sat, 2 Dec 2017 04:14:27 -0500
Show friendlier error on setDates() failure during file sync download
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage/storageLocal.js b/chrome/content/zotero/xpcom/storage/storageLocal.js
@@ -650,14 +650,14 @@ Zotero.Sync.Storage.Local = {
if (!md5) {
md5 = yield item.attachmentHash;
}
+
+ // Set the file mtime to the time from the server
+ yield OS.File.setDates(path, null, new Date(parseInt(mtime)));
}
catch (e) {
Zotero.File.checkFileAccessError(e, path, 'update');
}
- // Set the file mtime to the time from the server
- yield OS.File.setDates(path, null, new Date(parseInt(mtime)));
-
item.attachmentSyncedModificationTime = mtime;
item.attachmentSyncedHash = md5;
item.attachmentSyncState = "in_sync";