From 2d9298f5f5550c21ba218ff7095aa9afe80c7e02 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 31 Oct 2023 12:13:57 +0100 Subject: chore: update ext/kv to use denokv_* crates (#20986) This commit updates the ext/kv module to use the denokv_* crates for the protocol and the sqlite backend. This also fixes a couple of bugs in the sqlite backend, and updates versionstamps to be updated less linearly. --- runtime/errors.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime/errors.rs') diff --git a/runtime/errors.rs b/runtime/errors.rs index e6ae14abb..47925fe5c 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -211,6 +211,10 @@ pub fn get_error_class_name(e: &AnyError) -> Option<&'static str> { e.downcast_ref::() .map(get_url_parse_error_class) }) + .or_else(|| { + e.downcast_ref::() + .map(|_| "TypeError") + }) .or_else(|| { #[cfg(unix)] let maybe_get_nix_error_class = -- cgit v1.2.3