mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Fix #990 - error message incorrect
This commit is contained in:
@@ -34,9 +34,18 @@ tree.mixin.Call.prototype = {
|
||||
throw { type: 'Runtime',
|
||||
message: 'No matching definition was found for `' +
|
||||
this.selector.toCSS().trim() + '(' +
|
||||
this.arguments.map(function (a) {
|
||||
return a.toCSS();
|
||||
}).join(', ') + ")`",
|
||||
(args ? args.map(function (a) {
|
||||
var argValue = "";
|
||||
if (a.name) {
|
||||
argValue += a.name + ":";
|
||||
}
|
||||
if (a.value.toCSS) {
|
||||
argValue += a.value.toCSS();
|
||||
} else {
|
||||
argValue += "???";
|
||||
}
|
||||
return argValue;
|
||||
}).join(', ') : "") + ")`",
|
||||
index: this.index, filename: this.filename };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user