summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index bc28339ad..573563595 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -245,6 +245,10 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> {
.map(get_webstorage_class_name)
})
.or_else(|| {
+ e.downcast_ref::<deno_url::UrlPatternError>()
+ .map(|_| "TypeError")
+ })
+ .or_else(|| {
e.downcast_ref::<dlopen2::Error>()
.map(get_dlopen_error_class)
})