Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1872)

Unified Diff: Source/modules/indexeddb/IDBTransaction.cpp

Issue 120063002: Improve modules' TypeError exception messages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/indexeddb/IDBTransaction.cpp
diff --git a/Source/modules/indexeddb/IDBTransaction.cpp b/Source/modules/indexeddb/IDBTransaction.cpp
index 0b6efd00d363b8f2024f44946a21059f4085ce6c..1c79c0e15a395931f39f96766aa726aa458f68f9 100644
--- a/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/Source/modules/indexeddb/IDBTransaction.cpp
@@ -289,7 +289,7 @@ IndexedDB::TransactionMode IDBTransaction::stringToMode(const String& modeString
if (modeString == IDBTransaction::modeReadWrite())
return IndexedDB::TransactionReadWrite;
- exceptionState.throwUninformativeAndGenericTypeError();
+ exceptionState.throwTypeError("The mode provided ('" + modeString + "') is not one of 'readonly' or 'readwrite'.");
return IndexedDB::TransactionReadOnly;
}

Powered by Google App Engine
This is Rietveld 408576698