fix 'missing }' error message

This commit is contained in:
Alexis Sellier
2012-01-16 14:59:00 +01:00
parent 38f0d90393
commit 72f7fa6077

View File

@@ -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('') });;