1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

fix(ext/webstorage): use error class for sqlite error case (#26806)

Fixes #26797
This commit is contained in:
Leo Kettmeir 2024-11-10 02:43:04 -08:00 committed by GitHub
parent e1b40a69c0
commit bfc143a5ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -623,7 +623,7 @@ fn get_ffi_call_error_class(e: &CallError) -> &'static str {
fn get_webstorage_class_name(e: &WebStorageError) -> &'static str { fn get_webstorage_class_name(e: &WebStorageError) -> &'static str {
match e { match e {
WebStorageError::ContextNotSupported => "DOMExceptionNotSupportedError", WebStorageError::ContextNotSupported => "DOMExceptionNotSupportedError",
WebStorageError::Sqlite(_) => todo!(), WebStorageError::Sqlite(_) => "Error",
WebStorageError::Io(e) => get_io_error_class(e), WebStorageError::Io(e) => get_io_error_class(e),
WebStorageError::StorageExceeded => "DOMExceptionQuotaExceededError", WebStorageError::StorageExceeded => "DOMExceptionQuotaExceededError",
} }