mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
Don't expose ErrWithV8Handle from deno_core
This commit is contained in:
parent
28c9d90b4b
commit
68099acbc6
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue