mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 1497007 - Improve exception messages. r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D52355 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
3250ee2a10
commit
49f97fef21
@ -875,7 +875,9 @@ already_AddRefed<IDBObjectStore> IDBTransaction::ObjectStore(
|
||||
AssertIsOnOwningThread();
|
||||
|
||||
if (IsCommittingOrDone()) {
|
||||
aRv.Throw(NS_ERROR_DOM_INVALID_STATE_ERR);
|
||||
aRv.ThrowDOMException(
|
||||
NS_ERROR_DOM_INVALID_STATE_ERR,
|
||||
NS_LITERAL_CSTRING("Transaction is already committing or done."));
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user