mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
console.errors when in html serving mode
This commit is contained in:
parent
631c6925d4
commit
8295363bed
@ -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>';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user