Fix #990 - error message incorrect

This commit is contained in:
Luke Page
2012-10-21 16:16:51 +01:00
parent 7334bcc34d
commit e1485dd706
5 changed files with 30 additions and 3 deletions

View File

@@ -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 };
}
}