zjquery: Throw Error() object to get tracebacks.

If you throw a raw string in node, you don't get a traceback.
This commit is contained in:
Steve Howell 2017-05-31 09:03:18 -06:00 committed by Tim Abbott
parent 1dae2af7b0
commit 0b0c57bbe0
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ exports.make_zjquery = function () {
return child;
}
throw "Cannot find " + child_selector + " in " + selector;
throw Error("Cannot find " + child_selector + " in " + selector);
},
add_child: function (child_selector, child_elem) {
child_elem.set_parent(self);