More helpful debug error output in DB parameter handling and Notifier.trigger()

This commit is contained in:
Dan Stillman 2006-08-10 22:46:00 +00:00
parent 892478be2e
commit 97628b0d2c
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -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 + "', "