fix(@embark/ipc): fix functions not being printed in console

This commit is contained in:
Jonathan Rainville 2019-07-03 13:43:02 -04:00 committed by Pascal Precht
parent 0e9a4a136b
commit 421c340613

View File

@ -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) => {