mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb/IDB: Improve error messages related to transaction state
This commit is contained in:
parent
6237824d99
commit
0890b10d11
Notes:
github-actions[bot]
2025-05-06 09:18:32 +00:00
Author: https://github.com/stelar7
Commit: 0890b10d11
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4524
Reviewed-by: https://github.com/gmta ✅
3 changed files with 9 additions and 7 deletions
|
@ -62,7 +62,7 @@ WebIDL::ExceptionOr<void> IDBIndex::set_name(String const& value)
|
|||
|
||||
// 5. If transaction’s state is not active, then throw a "TransactionInactiveError" DOMException.
|
||||
if (transaction->state() != IDBTransaction::TransactionState::Active)
|
||||
return WebIDL::TransactionInactiveError::create(realm, "Transaction is not active"_string);
|
||||
return WebIDL::TransactionInactiveError::create(realm, "Transaction is not active while updating index name"_string);
|
||||
|
||||
// FIXME: 6. If index or index’s object store has been deleted, throw an "InvalidStateError" DOMException.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue