summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cli/errors.rs3
-rw-r--r--core/error.rs2
2 files changed, 2 insertions, 3 deletions
diff --git a/cli/errors.rs b/cli/errors.rs
index 30cae156a..2587017bd 100644
--- a/cli/errors.rs
+++ b/cli/errors.rs
@@ -11,7 +11,6 @@
use crate::ast::DiagnosticBuffer;
use crate::import_map::ImportMapError;
-use deno_core::error::get_custom_error_class;
use deno_core::error::AnyError;
use deno_core::ModuleResolutionError;
use rustyline::error::ReadlineError;
@@ -171,7 +170,7 @@ fn get_nix_error_class(error: &nix::Error) -> &'static str {
}
pub(crate) fn get_error_class_name(e: &AnyError) -> &'static str {
- get_custom_error_class(e)
+ deno_core::error::get_custom_error_class(e)
.or_else(|| {
e.downcast_ref::<dlopen::Error>()
.map(get_dlopen_error_class)
diff --git a/core/error.rs b/core/error.rs
index 198f7baee..bb23a10d1 100644
--- a/core/error.rs
+++ b/core/error.rs
@@ -381,7 +381,7 @@ pub(crate) fn attach_handle_to_error(
// TODO(piscisaureus): rusty_v8 should implement the Error trait on
// values of type v8::Global<T>.
-pub struct ErrWithV8Handle {
+pub(crate) struct ErrWithV8Handle {
err: AnyError,
handle: v8::Global<v8::Value>,
}