console.errors when in html serving mode

This commit is contained in:
Tom MacWright 2017-01-29 17:04:19 -05:00
parent 631c6925d4
commit 8295363bed

View File

@ -27,6 +27,7 @@ ansiHTML.setColors({
*/
function errorPage(error/*: Error*/) {
var errorText = error.toString();
console.error(error);
if (error.codeFrame) {
errorText += '<pre>' + ansiHTML(error.codeFrame) + '</pre>';
}