Skip to content

Commit 10f56a4

Browse files
committed
Change error message for simple-selectors(null)
Ruby Sass has an additional assert for plain string only before parsing selectors. This is probably the only function using get_arg_sel<Compound_Selector>(), so change it there.
1 parent 997c86d commit 10f56a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/functions.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ namespace Sass {
188188
Expression* exp = ARG(argname, Expression);
189189
if (exp->concrete_type() == Expression::NULL_VAL) {
190190
std::stringstream msg;
191-
msg << argname << ": null is not a valid selector: it must be a string,\n";
192-
msg << "a list of strings, or a list of lists of strings for `" << function_name(sig) << "'";
191+
msg << argname << ": null is not a string for `" << function_name(sig) << "'";
193192
error(msg.str(), pstate);
194193
}
195194
std::string exp_src = exp->perform(&to_string) + "{";

0 commit comments

Comments
 (0)