Show friendlier error on setDates() failure during file sync download
This commit is contained in:
parent
6941f96a5a
commit
4c337e5294
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue