Index: Source/modules/encoding/TextDecoder.cpp |
diff --git a/Source/modules/encoding/TextDecoder.cpp b/Source/modules/encoding/TextDecoder.cpp |
index e463c08f725499571fea8f9e70d3d0fb5051781c..06bf788e0f7aacde318748d8c796432d20bd9c67 100644 |
--- a/Source/modules/encoding/TextDecoder.cpp |
+++ b/Source/modules/encoding/TextDecoder.cpp |
@@ -44,7 +44,7 @@ PassRefPtr<TextDecoder> TextDecoder::create(const String& label, const Dictionar |
WTF::TextEncoding encoding(encodingLabel); |
if (!encoding.isValid()) { |
- exceptionState.throwUninformativeAndGenericTypeError(); |
+ exceptionState.throwTypeError("The encoding label provided ('" + encodingLabel + "') is invalid."); |
return 0; |
} |