diff --git a/src/parser.cpp b/src/parser.cpp index 818108ae0e..e608f318b1 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -1636,8 +1636,9 @@ namespace Sass { } ex->is_interpolant(true); schema->append(ex); - // ToDo: no error check here? - lex < exactly < rbrace > >(); + if (!lex < exactly < rbrace > >()) { + css_error("Invalid CSS", " after ", ": expected \"}\", was "); + } } // lex some string constants or other valid token // Note: [-+] chars are left over from i.e. `#{3}+3`