summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-06-04 23:03:56 +1000
committerRyan Dahl <ry@tinyclouds.org>2019-06-04 09:03:56 -0400
commita71305b4febc3d8db95d3d144ae3a64c023718f0 (patch)
treef0dcc6017f62380b02a08d800503fbf7242fbe72 /cli/worker.rs
parent60d452264198adb3da4820236cf8ea35d33486cd (diff)
Handle compiler diagnostics in Rust (#2445)
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs3
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");