mirror of
https://github.com/less/less.js.git
synced 2026-02-05 20:44:58 -05:00
fix error message on wrong-arity call
This commit is contained in:
@@ -228,8 +228,8 @@ less.Parser = function Parser(env) {
|
||||
this.filename = e.filename || env.filename;
|
||||
this.index = e.index;
|
||||
this.line = typeof(line) === 'number' ? line + 1 : null;
|
||||
this.callLine = e.call && (getLocation(e.call, input) + 1);
|
||||
this.callExtract = lines[getLocation(e.call, input)];
|
||||
this.callLine = e.call && (getLocation(e.call, input).line + 1);
|
||||
this.callExtract = lines[getLocation(e.call, input).line];
|
||||
this.stack = e.stack;
|
||||
this.column = col;
|
||||
this.extract = [
|
||||
|
||||
@@ -22,7 +22,7 @@ tree.mixin.Call.prototype = {
|
||||
rules, mixins[m].eval(env, this.arguments, this.important).rules);
|
||||
match = true;
|
||||
} catch (e) {
|
||||
throw { message: e.message, index: e.index, filename: this.filename, stack: e.stack, call: this.index };
|
||||
throw { message: e.message, index: this.index, filename: this.filename, stack: e.stack };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user