Fixed prettyPrint

This commit is contained in:
Alex Mikhalev 2017-10-09 13:09:14 -06:00
parent 00ba7cdf85
commit 782c79d848

View File

@ -47,8 +47,8 @@ function formatter(value: any) {
line += chalk.cyan(value.msg); line += chalk.cyan(value.msg);
} }
line += "\n"; line += "\n";
if (value.type === "Error") { if (value.err) {
line += " " + withSpaces(value.stack) + "\n"; line += " " + withSpaces(value.err.stack) + "\n";
} else { } else {
line += filter(value); line += filter(value);
} }