Skip to content

Commit

Permalink
fix 'missing }' error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jan 16, 2012
1 parent 38f0d90 commit 72f7fa6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/less/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('') });;
Expand Down

0 comments on commit 72f7fa6

Please sign in to comment.