8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c52f45 commit e58238bCopy full SHA for e58238b
lib/less/parser.js
@@ -309,17 +309,21 @@ less.Parser = function Parser(env) {
309
}
310
311
if (level > 0) { 8000 div>
312
- return callback(new(LessError)({
+ error = new(LessError)({
313
index: i,
314
type: 'Parse',
315
message: "missing closing `}`",
316
filename: env.filename
317
- }, env));
+ }, env);
318
319
320
return chunks.map(function (c) { return c.join('') });;
321
})([[]]);
322
323
+ if (error) {
324
+ return callback(error);
325
+ }
326
+
327
// Start with the primary rule.
328
// The whole syntax tree is held under a Ruleset node,
329
// with the `root` property set to true, so no `{}` are
0 commit comments