summaryrefslogtreecommitdiff
path: root/cli/js/format_error.ts
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2020-03-02 14:20:16 -0800
committerBert Belder <bertbelder@gmail.com>2020-03-02 14:20:16 -0800
commiteafd40feabaf14f9f88748c66fa319519fd69072 (patch)
treeccb3a5848fec4bc013aad774fc9c9bda2f894043 /cli/js/format_error.ts
parent3fcbf8789e7f873f8a562b200ab82ea7cec173d8 (diff)
Do not convert exceptions to JSON and back (#4214)
Diffstat (limited to 'cli/js/format_error.ts')
-rw-r--r--cli/js/format_error.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/js/format_error.ts b/cli/js/format_error.ts
index 21c4bcfa8..0a322338a 100644
--- a/cli/js/format_error.ts
+++ b/cli/js/format_error.ts
@@ -2,12 +2,6 @@
import { DiagnosticItem } from "./diagnostics.ts";
import { sendSync } from "./dispatch_json.ts";
-// TODO(bartlomieju): move to `repl.ts`?
-export function formatError(errString: string): string {
- const res = sendSync("op_format_error", { error: errString });
- return res.error;
-}
-
/**
* Format an array of diagnostic items and return them as a single string.
* @param items An array of diagnostic items to format