display error in the browser when we're in dev
matthewmueller opened this issue · comments
Matt Mueller commented
cleaned up version of:
var toHTML = require('ansii-html')
this.body = 'document.body.innerHTML = "<pre style=\\"padding:50px;\\">' + toHTML(msg).replace(/['"]/gm, '\\\"').replace(/(\r\n|\n|\r)/gm, '<br/>') + '</pre>";';
Matt Mueller commented
done via 1.0.7