diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js index 0330a73bea..7e0e6d0aa4 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/db.js +++ b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -215,7 +215,12 @@ Scholar.DB = new function(){ } else { Scholar.debug('Committing transaction',5); - db.commitTransaction(); + try { + db.commitTransaction(); + } + catch(e){ + throw(e + ' [ERROR: ' + db.lastErrorString + ']'); + } } } @@ -230,7 +235,12 @@ Scholar.DB = new function(){ else { Scholar.debug('Rolling back transaction', 5); _transactionRollback = false; - db.rollbackTransaction(); + try { + db.rollbackTransaction(); + } + catch(e){ + throw(e + ' [ERROR: ' + db.lastErrorString + ']'); + } } }