commit 97628b0d2c95a15d31238f6327311cb7d800c1fd parent 892478be2ed11494f83723dafdaf5146910bfa47 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 10 Aug 2006 22:46:00 +0000 More helpful debug error output in DB parameter handling and Notifier.trigger() Diffstat:
| M | chrome/chromeFiles/content/scholar/xpcom/db.js | | | 3 | ++- |
| M | 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 @@ -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 @@ -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 + "', "