summaryrefslogtreecommitdiff
path: root/runtime/errors.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/errors.rs')
-rw-r--r--runtime/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/errors.rs b/runtime/errors.rs
index e6ae14abb..47925fe5c 100644
--- a/runtime/errors.rs
+++ b/runtime/errors.rs
@@ -212,6 +212,10 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> {
.map(get_url_parse_error_class)
})
.or_else(|| {
+ e.downcast_ref::<deno_kv::sqlite::TypeError>()
+ .map(|_| "TypeError")
+ })
+ .or_else(|| {
#[cfg(unix)]
let maybe_get_nix_error_class =
|| e.downcast_ref::<nix::Error>().map(get_nix_error_class);