More helpful debug error output in DB parameter handling and Notifier.trigger()
This commit is contained in:
parent
892478be2e
commit
97628b0d2c
2 changed files with 3 additions and 2 deletions
|
@ -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];
|
||||
|
|
|
@ -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 + "', "
|
||||
|
|
Loading…
Reference in a new issue