From bfc143a5ac233a0db26ff1e29dd7b94a697d862d Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Sun, 10 Nov 2024 02:43:04 -0800 Subject: [PATCH] fix(ext/webstorage): use error class for sqlite error case (#26806) Fixes #26797 --- runtime/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/errors.rs b/runtime/errors.rs index 5716944b7e..0c26e0e47a 100644 --- a/runtime/errors.rs +++ b/runtime/errors.rs @@ -623,7 +623,7 @@ fn get_ffi_call_error_class(e: &CallError) -> &'static str { fn get_webstorage_class_name(e: &WebStorageError) -> &'static str { match e { WebStorageError::ContextNotSupported => "DOMExceptionNotSupportedError", - WebStorageError::Sqlite(_) => todo!(), + WebStorageError::Sqlite(_) => "Error", WebStorageError::Io(e) => get_io_error_class(e), WebStorageError::StorageExceeded => "DOMExceptionQuotaExceededError", }