mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb/IDB: Improve error messages slightly
This commit is contained in:
parent
63e1cc7b50
commit
1fe6060ff9
Notes:
github-actions[bot]
2025-05-08 13:14:39 +00:00
Author: https://github.com/stelar7
Commit: 1fe6060ff9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4650
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 15 additions and 12 deletions
|
@ -98,7 +98,7 @@ WebIDL::ExceptionOr<void> IDBCursor::continue_(JS::Value key)
|
|||
|
||||
// 4. If this's got value flag is false, indicating that the cursor is being iterated or has iterated past its end, throw an "InvalidStateError" DOMException.
|
||||
if (!m_got_value)
|
||||
return WebIDL::InvalidStateError::create(realm, "Cursor is active or EOL"_string);
|
||||
return WebIDL::InvalidStateError::create(realm, "Cursor is active or EOL while continuing"_string);
|
||||
|
||||
// 5. If key is given, then:
|
||||
GC::Ptr<Key> key_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue