use console.error for stack traces
parent
d705b947ab
commit
9f45ccb2d9
|
@ -151,7 +151,7 @@ const onMessage = (ctx, evt) => {
|
|||
handlers = chan._.onMessage;
|
||||
}
|
||||
handlers.forEach((h) => {
|
||||
try { h(msg[4], msg[1]); } catch (e) { console.log(e.stack); }
|
||||
try { h(msg[4], msg[1]); } catch (e) { console.error(e); }
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue