use console.error for stack traces

pull/1/head
ansuz 9 years ago
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…
Cancel
Save