Add error message with filename when file creation fails during sync
This commit is contained in:
parent
fc6847ca98
commit
6cefc8fb72
|
@ -902,7 +902,9 @@ Zotero.Sync.Storage = new function () {
|
|||
renamed = true;
|
||||
}
|
||||
else {
|
||||
throw(e);
|
||||
Components.utils.reportError(e);
|
||||
var msg = Zotero.getString('sync.storage.error.fileNotCreated', parentDir.leafName + '/' + fileName);
|
||||
throw(msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1099,7 +1101,10 @@ Zotero.Sync.Storage = new function () {
|
|||
}
|
||||
else {
|
||||
zipReader.close();
|
||||
throw(e);
|
||||
|
||||
Components.utils.reportError(e);
|
||||
var msg = Zotero.getString('sync.storage.error.fileNotCreated', parentDir.leafName + '/' + fileName);
|
||||
throw(msg);
|
||||
}
|
||||
}
|
||||
zipReader.extract(entryName, destFile);
|
||||
|
|
|
@ -624,6 +624,7 @@ sync.storage.error.permissionDeniedAtAddress = You do not have permission to cre
|
|||
sync.storage.error.checkFileSyncSettings = Please check your file sync settings or contact your server administrator.
|
||||
sync.storage.error.verificationFailed = %S verification failed. Verify your file sync settings in the Sync pane of the Zotero preferences.
|
||||
sync.storage.error.fileInUse = The file '%S' is in use and cannot be updated. Please close the file or restart your computer and try syncing again.
|
||||
sync.storage.error.fileNotCreated = The file '%S' could not be created in the Zotero 'storage' directory.
|
||||
sync.storage.error.fileEditingAccessLost = You no longer have file editing access to the Zotero group '%S', and files you've added or edited cannot be synced to the server.
|
||||
sync.storage.error.copyChangedItems = If you would like a chance to copy changed items and files elsewhere, cancel the sync now.
|
||||
sync.storage.error.fileUploadFailed = File upload failed.
|
||||
|
|
Loading…
Reference in New Issue
Block a user