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

This commit is contained in:
Dan Stillman 2009-07-03 05:11:22 +00:00
parent 2f2441bbf7
commit 52dda8ae0b

View file

@ -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