Index: Source/core/css/FontFaceSet.cpp |
diff --git a/Source/core/css/FontFaceSet.cpp b/Source/core/css/FontFaceSet.cpp |
index 52a93f4d028d763a46eba8900422e6e66e377664..b0c11b4dace76e76b3830a8b6bdb5c4905808b86 100644 |
--- a/Source/core/css/FontFaceSet.cpp |
+++ b/Source/core/css/FontFaceSet.cpp |
@@ -295,7 +295,7 @@ Vector<RefPtr<FontFace> > FontFaceSet::match(const String& fontString, const Str |
Font font; |
if (!resolveFontStyle(fontString, font)) { |
- exceptionState.throwUninformativeAndGenericDOMException(SyntaxError); |
+ exceptionState.throwDOMException(SyntaxError, "Could not resolve '" + fontString + "' as a font."); |
return matchedFonts; |
} |
@@ -311,7 +311,7 @@ ScriptPromise FontFaceSet::load(const String& fontString, const String& text, Ex |
{ |
Font font; |
if (!resolveFontStyle(fontString, font)) { |
- exceptionState.throwUninformativeAndGenericDOMException(SyntaxError); |
+ exceptionState.throwDOMException(SyntaxError, "Could not resolve '" + fontString + "' as a font."); |
return ScriptPromise(); |
} |
@@ -333,7 +333,7 @@ bool FontFaceSet::check(const String& fontString, const String& text, ExceptionS |
{ |
Font font; |
if (!resolveFontStyle(fontString, font)) { |
- exceptionState.throwUninformativeAndGenericDOMException(SyntaxError); |
+ exceptionState.throwDOMException(SyntaxError, "Could not resolve '" + fontString + "' as a font."); |
return false; |
} |