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.
2 parents f69de47 + e58238b commit 222f5e6Copy full SHA for 222f5e6
lib/less/parser.js
@@ -317,17 +317,21 @@ less.Parser = function Parser(env) {
317
}
318
319
if (level > 0) {
320
- return callback(new(LessError)({
+ error = new(LessError)({
321
index: i,
322
type: 'Parse',
323
message: "missing closing `}`",
324
filename: env.filename
325
- }, env));
+ }, env);
326
327
328
return chunks.map(function (c) { return c.join('') });;
329
})([[]]);
330
331
+ if (error) {
332
+ return callback(error);
333
+ }
334
+
335
// Start with the primary rule.
336
// The whole syntax tree is held under a Ruleset node,
337
// with the `root` property set to true, so no `{}` are
0 commit comments