diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-06-04 23:03:56 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-04 09:03:56 -0400 |
commit | a71305b4febc3d8db95d3d144ae3a64c023718f0 (patch) | |
tree | f0dcc6017f62380b02a08d800503fbf7242fbe72 /cli/worker.rs | |
parent | 60d452264198adb3da4820236cf8ea35d33486cd (diff) |
Handle compiler diagnostics in Rust (#2445)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r-- | cli/worker.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs index 59eecda6f..c08a43385 100644 --- a/cli/worker.rs +++ b/cli/worker.rs @@ -4,7 +4,6 @@ use crate::compiler::ModuleMetaData; use crate::errors::DenoError; use crate::errors::RustOrJsError; use crate::js_errors; -use crate::js_errors::JSErrorColor; use crate::msg; use crate::state::ThreadSafeState; use crate::tokio_util; @@ -233,7 +232,7 @@ fn fetch_module_meta_data_and_maybe_compile_async( compile_async(state_.clone(), &specifier, &referrer, &out) .map_err(|e| { debug!("compiler error exiting!"); - eprintln!("{}", JSErrorColor(&e).to_string()); + eprintln!("\n{}", e.to_string()); std::process::exit(1); }).and_then(move |out| { debug!(">>>>> compile_sync END"); |