summaryrefslogtreecommitdiff
path: root/cli/tools/info.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2024-11-04 09:17:21 -0800
committerGitHub <noreply@github.com>2024-11-04 09:17:21 -0800
commitfe9f0ee5934871175758857899fe64e56c397fd5 (patch)
treeee770a45366d1b054e7429cea2eff56b04532830 /cli/tools/info.rs
parentfb1d33a7111e45e9b414cfe922a5db5ee4daf3ea (diff)
refactor(runtime/permissions): use concrete error types (#26464)
Diffstat (limited to 'cli/tools/info.rs')
-rw-r--r--cli/tools/info.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/tools/info.rs b/cli/tools/info.rs
index b53485bd6..c2f5a8cb8 100644
--- a/cli/tools/info.rs
+++ b/cli/tools/info.rs
@@ -645,10 +645,12 @@ impl<'a> GraphDisplayContext<'a> {
let message = match err {
HttpsChecksumIntegrity(_) => "(checksum integrity error)",
Decode(_) => "(loading decode error)",
- Loader(err) => match deno_core::error::get_custom_error_class(err) {
- Some("NotCapable") => "(not capable, requires --allow-import)",
- _ => "(loading error)",
- },
+ Loader(err) => {
+ match deno_runtime::errors::get_error_class_name(err) {
+ Some("NotCapable") => "(not capable, requires --allow-import)",
+ _ => "(loading error)",
+ }
+ }
Jsr(_) => "(loading error)",
NodeUnknownBuiltinModule(_) => "(unknown node built-in error)",
Npm(_) => "(npm loading error)",