use console.error for stack traces

This commit is contained in:
ansuz committed 2016-04-12 16:47:30 +02:00
1 parent d705b947ab
commit 9f45ccb2d9
1 file changed
+1 -1
+1 -1
View File
@@ -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); }
});
}