From 421c340613bb9a71b5ddaa334667d225789b85bf Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 3 Jul 2019 13:43:02 -0400 Subject: [PATCH] fix(@embark/ipc): fix functions not being printed in console --- packages/embark-console/src/lib/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/embark-console/src/lib/index.ts b/packages/embark-console/src/lib/index.ts index 52fc78435..0267895e8 100644 --- a/packages/embark-console/src/lib/index.ts +++ b/packages/embark-console/src/lib/index.ts @@ -6,6 +6,7 @@ import { __ } from "embark-i18n"; import { dappPath, escapeHtml, exit, jsonFunctionReplacer } from "embark-utils"; import stringify from "json-stringify-safe"; import { dirname } from "path"; +import util from "util"; import Suggestions from "./suggestions"; type MatchFunction = (cmd: string) => boolean; @@ -49,7 +50,7 @@ class Console { // reformat for IPC reply error = { name: "Console error", message: err, stack: err }; } - cb(error, result); + cb(error, util.inspect(result)); }); }); this.ipc.on("console:history:save", true, (cmd: string) => {