mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/IDB: Make some debug messages more descriptive
This commit is contained in:
parent
fc06d088c3
commit
aa4e303b9f
Notes:
github-actions[bot]
2025-04-11 01:13:41 +00:00
Author: https://github.com/stelar7
Commit: aa4e303b9f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4306
Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 2 additions and 2 deletions
|
@ -176,7 +176,7 @@ WebIDL::ExceptionOr<void> IDBDatabase::delete_object_store(String const& name)
|
||||||
// 4. Let store be the object store named name in database, or throw a "NotFoundError" DOMException if none.
|
// 4. Let store be the object store named name in database, or throw a "NotFoundError" DOMException if none.
|
||||||
auto store = database->object_store_with_name(name);
|
auto store = database->object_store_with_name(name);
|
||||||
if (!store)
|
if (!store)
|
||||||
return WebIDL::NotFoundError::create(realm, "Object store not found"_string);
|
return WebIDL::NotFoundError::create(realm, "Object store not found while trying to delete"_string);
|
||||||
|
|
||||||
// 5. Remove store from this's object store set.
|
// 5. Remove store from this's object store set.
|
||||||
this->remove_from_object_store_set(*store);
|
this->remove_from_object_store_set(*store);
|
||||||
|
|
|
@ -141,7 +141,7 @@ WebIDL::ExceptionOr<GC::Ref<IDBObjectStore>> IDBTransaction::object_store(String
|
||||||
// 2. Let store be the object store named name in this's scope, or throw a "NotFoundError" DOMException if none.
|
// 2. Let store be the object store named name in this's scope, or throw a "NotFoundError" DOMException if none.
|
||||||
auto store = object_store_named(name);
|
auto store = object_store_named(name);
|
||||||
if (!store)
|
if (!store)
|
||||||
return WebIDL::NotFoundError::create(realm, "Object store not found"_string);
|
return WebIDL::NotFoundError::create(realm, "Object store not found in transactions scope"_string);
|
||||||
|
|
||||||
// 3. Return an object store handle associated with store and this.
|
// 3. Return an object store handle associated with store and this.
|
||||||
return IDBObjectStore::create(realm, *store, *this);
|
return IDBObjectStore::create(realm, *store, *this);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue