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:
Simon Giesecke 2019-11-20 10:23:47 +00:00
parent 3250ee2a10
commit 49f97fef21

View File

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