mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 06:16:01 +00:00
fix(@embark/ipc): fix functions not being printed in console
This commit is contained in:
parent
0e9a4a136b
commit
421c340613
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user