commit 46fa6484a56c2cceb66f83bb8b28fc908a977d73 parent c92faace5228c52931e8ce8f913d299e1356eeed Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 14 Aug 2006 18:44:28 +0000 Fix last unhelpful debug message in db.js Diffstat:
| M | chrome/chromeFiles/content/scholar/xpcom/db.js | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -104,7 +104,9 @@ Scholar.DB = new function(){ var statement = statementQuery(sql,params); } catch (e){ - throw(db.lastErrorString); + var dberr = (db.lastErrorString!='not an error') + ? ' [ERROR: ' + db.lastErrorString + ']' : ''; + throw(e + ' [QUERY: ' + sql + ']' + dberr); } // No rows