From d0156e2c88674b311a31f2696e09e918aee29445 Mon Sep 17 00:00:00 2001 From: stelar7 Date: Tue, 29 Apr 2025 17:39:22 +0200 Subject: [PATCH] LibWeb/IDB: Use invalidation reason when returning DataError --- Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp b/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp index b88fbff3546..d7ac16cd8c3 100644 --- a/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBObjectStore.cpp @@ -289,7 +289,7 @@ WebIDL::ExceptionOr> IDBObjectStore::add_or_put(GC::Refis_invalid()) - return WebIDL::DataError::create(realm, "Key path is invalid"_string); + return WebIDL::DataError::create(realm, key_value->value_as_string()); } // 4. Otherwise (kpk is failure):