mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
fix 'missing }' error message
This commit is contained in:
@@ -309,11 +309,12 @@ less.Parser = function Parser(env) {
|
||||
}
|
||||
}
|
||||
if (level > 0) {
|
||||
throw {
|
||||
type: 'Syntax',
|
||||
message: "Missing closing `}`",
|
||||
return callback(new(LessError)({
|
||||
index: i,
|
||||
type: 'Parse',
|
||||
message: "missing closing `}`",
|
||||
filename: env.filename
|
||||
};
|
||||
}, env));
|
||||
}
|
||||
|
||||
return chunks.map(function (c) { return c.join('') });;
|
||||
|
||||
Reference in New Issue
Block a user