www

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

commit 05088d4cfa4d97b366eed435acbd72ef57bfde07
parent efca9701d38106a7575a3a63a9ec11044d25c919
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 28 Jan 2010 22:05:54 +0000

Better logging for "entry is null" file sync error


Diffstat:
Mchrome/content/zotero/xpcom/storage.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js @@ -2282,6 +2282,13 @@ Zotero.Sync.Storage.ZipWriterObserver.prototype = { var originalSize = 0; for each(var fileName in this._data.files) { var entry = this._zipWriter.getEntry(fileName); + if (!entry) { + var msg = "ZIP entry '" + fileName + "' not found for request '" + this._data.request.name + "'"; + Zotero.debug(msg, 1); + this._zipWriter.close(); + this._data.request.error(msg); + return; + } originalSize += entry.realSize; } delete this._data.files;