Show friendlier error on setDates() failure during file sync download

This commit is contained in:
Dan Stillman 2017-12-02 04:14:27 -05:00
parent 6941f96a5a
commit 4c337e5294

View file

@ -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";