LibWeb/IDB: Improve error messages slightly

This commit is contained in:
stelar7 2025-05-08 09:48:06 +02:00 committed by Sam Atkins
parent 63e1cc7b50
commit 1fe6060ff9
Notes: github-actions[bot] 2025-05-08 13:14:39 +00:00
4 changed files with 15 additions and 12 deletions

View file

@ -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;