www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit a94675f40245a2984692453657690c4183d29ceb
parent c17336291bbf93a11d2bfc0a7400aff07548f3e0
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  9 Aug 2010 06:37:01 +0000

Add better message for error Kaspersky users have gotten


Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 17++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -1221,7 +1221,22 @@ Zotero.Sync.Storage = new function () { throw(msg); } } - zipReader.extract(entryName, destFile); + try { + zipReader.extract(entryName, destFile); + } + catch (e) { + if (e.name == 'NS_ERROR_FILE_ACCESS_DENIED') { + Zotero.debug(e); + // TODO: localize + var msg = "Zotero was unable to create a file during syncing." + + "\n\n" + + "Restarting your computer or disabling anti-virus/security " + + "software may fix the problem."; + throw (msg); + } + + throw (e); + } var origPath = destFile.path; var origFileName = destFile.leafName;