Skip to content

Commit ad11966

Browse files
committed
Actually improve error message
1 parent c840250 commit ad11966

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function parseQuery(mediaQuery) {
9292

9393
// Media Query must be valid.
9494
if (!captures) {
95-
throw new SyntaxError('Invalid CSS media query: +' + query + '"');
95+
throw new SyntaxError('Invalid CSS media query: "' + query + '"');
9696
}
9797

9898
var modifier = captures[1],
@@ -114,15 +114,15 @@ function parseQuery(mediaQuery) {
114114

115115
// Media Query must be valid.
116116
if (!expressions) {
117-
throw new SyntaxError('Invalid CSS media query: +' + query + '"');
117+
throw new SyntaxError('Invalid CSS media query: "' + query + '"');
118118
}
119119

120120
parsed.expressions = expressions.map(function (expression) {
121121
var captures = expression.match(RE_MQ_EXPRESSION);
122122

123123
// Media Query must be valid.
124124
if (!captures) {
125-
throw new SyntaxError('Invalid CSS media query: +' + query + '"');
125+
throw new SyntaxError('Invalid CSS media query: "' + query + '"');
126126
}
127127

128128
var feature = captures[1].toLowerCase().match(RE_MQ_FEATURE);

0 commit comments

Comments
 (0)