summaryrefslogtreecommitdiff
path: root/src/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/errors.rs')
-rw-r--r--src/errors.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/errors.rs b/src/errors.rs
index 3a6937495..65118d070 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -1,9 +1,8 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-
-use crate::js_errors::JSError;
+use crate::js_errors::JSErrorColor;
pub use crate::msg::ErrorKind;
use crate::resolve_addr::ResolveAddrError;
-
+use deno_core::JSError;
use hyper;
use std;
use std::fmt;
@@ -202,7 +201,7 @@ impl fmt::Display for RustOrJsError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
RustOrJsError::Rust(e) => e.fmt(f),
- RustOrJsError::Js(e) => e.fmt(f),
+ RustOrJsError::Js(e) => JSErrorColor(e).fmt(f),
}
}
}