summaryrefslogtreecommitdiff
path: root/src/workers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/workers.rs')
-rw-r--r--src/workers.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/workers.rs b/src/workers.rs
index 5eb75ae13..3b20ae371 100644
--- a/src/workers.rs
+++ b/src/workers.rs
@@ -3,11 +3,12 @@ use crate::isolate::Buf;
use crate::isolate::Isolate;
use crate::isolate::IsolateState;
use crate::isolate::WorkerChannels;
-use crate::js_errors::JSError;
+use crate::js_errors::JSErrorColor;
use crate::ops;
use crate::resources;
use crate::snapshot;
use crate::tokio_util;
+use deno_core::JSError;
use futures::sync::mpsc;
use futures::sync::oneshot;
@@ -75,7 +76,7 @@ pub fn spawn(
worker.event_loop()?;
Ok(())
})().or_else(|err: JSError| -> Result<(), JSError> {
- eprintln!("{}", err.to_string());
+ eprintln!("{}", JSErrorColor(&err).to_string());
std::process::exit(1)
}).unwrap();
});