From 782c79d848045a94184e7c8a345ee441cc74bfaa Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 9 Oct 2017 13:09:14 -0600 Subject: [PATCH] Fixed prettyPrint --- server/logging/prettyPrint.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/logging/prettyPrint.ts b/server/logging/prettyPrint.ts index f13b7f2..4e557a8 100644 --- a/server/logging/prettyPrint.ts +++ b/server/logging/prettyPrint.ts @@ -47,8 +47,8 @@ function formatter(value: any) { line += chalk.cyan(value.msg); } line += "\n"; - if (value.type === "Error") { - line += " " + withSpaces(value.stack) + "\n"; + if (value.err) { + line += " " + withSpaces(value.err.stack) + "\n"; } else { line += filter(value); }