summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorChristian Dürr <102963075+cd-work@users.noreply.github.com>2022-09-02 20:53:23 +0000
committerGitHub <noreply@github.com>2022-09-02 22:53:23 +0200
commit63b8089bda8c88413bfad24aef415abc09e8d5c2 (patch)
treeb27b798ee77e75b36c487a19edd22e658fe76984 /cli/main.rs
parent4f8dea100e751d550a4a40d11b142fc9a7c4a5a8 (diff)
refactor: move JsError formatting to deno_runtime (#15345)
This takes the existing `fmt_error` module from cli and puts it as a public module into `deno_runtime`.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/main.rs b/cli/main.rs
index 0c4b5c893..bffe9c470 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -15,7 +15,6 @@ mod emit;
mod errors;
mod file_fetcher;
mod file_watcher;
-mod fmt_errors;
mod fs_util;
mod graph_util;
mod http_cache;
@@ -67,7 +66,6 @@ use crate::cache::TypeCheckCache;
use crate::emit::TsConfigType;
use crate::file_fetcher::File;
use crate::file_watcher::ResolutionResult;
-use crate::fmt_errors::format_js_error;
use crate::graph_util::graph_lock_or_exit;
use crate::graph_util::graph_valid;
use crate::proc_state::ProcState;
@@ -89,6 +87,7 @@ use deno_core::serde_json::json;
use deno_core::v8_set_flags;
use deno_core::ModuleSpecifier;
use deno_runtime::colors;
+use deno_runtime::fmt_errors::format_js_error;
use deno_runtime::permissions::Permissions;
use deno_runtime::tokio_util::run_local;
use log::debug;