use console.error for stack traces

This commit is contained in:
ansuz 2016-04-12 16:47:30 +02:00
parent d705b947ab
commit 9f45ccb2d9

View File

@ -151,7 +151,7 @@ const onMessage = (ctx, evt) => {
handlers = chan._.onMessage; handlers = chan._.onMessage;
} }
handlers.forEach((h) => { 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); }
}); });
} }