From 97628b0d2c95a15d31238f6327311cb7d800c1fd Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Aug 2006 22:46:00 +0000 Subject: [PATCH] More helpful debug error output in DB parameter handling and Notifier.trigger() --- chrome/chromeFiles/content/scholar/xpcom/db.js | 3 ++- chrome/chromeFiles/content/scholar/xpcom/notifier.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/db.js b/chrome/chromeFiles/content/scholar/xpcom/db.js index 7a515e9626..52c316284b 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/db.js +++ b/chrome/chromeFiles/content/scholar/xpcom/db.js @@ -203,7 +203,8 @@ Scholar.DB = new function(){ var type = 'null'; } else { - throw('Invalid bound parameter ' + params[i]); + throw('Invalid bound parameter ' + params[i] + + ' in ' + Scholar.varDump(params)); } } var value = params[i]; diff --git a/chrome/chromeFiles/content/scholar/xpcom/notifier.js b/chrome/chromeFiles/content/scholar/xpcom/notifier.js index a982a4bbfa..67cebb8bd0 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/notifier.js +++ b/chrome/chromeFiles/content/scholar/xpcom/notifier.js @@ -40,7 +40,7 @@ Scholar.Notifier = new function(){ var treeType = 'columnTree'; break; default: - throw('Invalid type in Notifier.trigger()'); + throw('Invalid type ' + type + ' in Notifier.trigger()'); } Scholar.debug("Notifier.trigger('" + event + "', '" + type + "', "