www

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

commit 52dda8ae0ba6ee7d9c191de4ce49b163a913b97f
parent 2f2441bbf711680b9efd246b40995e7269ed51ee
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  3 Jul 2009 05:11:22 +0000

Don't throw error on database backup failure, which was breaking some upgrades for unknown reasons


Diffstat:
Mchrome/content/zotero/xpcom/db.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js @@ -855,10 +855,10 @@ Zotero.DBConnection.prototype.backupDatabase = function (suffix) { getService(Components.interfaces.mozIStorageService); store.backupDatabaseFile(file, tmpFile.leafName, file.parent); } - catch (e){ + catch (e) { Zotero.debug(e); - // TODO: deal with low disk space - throw (e); + Components.utils.reportError(e); + return false; } // Opened database files can't be moved on Windows, so we have to skip