Skip to content

Commit 485855a

Browse files
committed
[js] Less annoying js exception handling
1 parent cee4a7e commit 485855a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vm/js/nqp-runtime/runtime.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,7 @@ exports.args = function(module) {
328328
exports.NQPException = NQPException;
329329

330330
exports.wrapException = function(e) {
331-
console.log(e);
332-
return new NQPException(e.message);
331+
return new NQPException("<<wrapped exception:\n" + e.stack + "\n>>\n");
333332
};
334333

335334
exports.setCodeRefHLL = function(codeRefs, hllName) {

0 commit comments

Comments
 (0)