mirror of https://github.com/zulip/zulip.git
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:
parent
1dae2af7b0
commit
0b0c57bbe0
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue