mirror of
https://github.com/less/less.js.git
synced 2026-02-10 23:15:13 -05:00
Fix error message when performing an operation on a keyword
This commit is contained in:
@@ -17,6 +17,11 @@ tree.Operation.prototype.eval = function (env) {
|
||||
message: "Can't substract or divide a color from a number" };
|
||||
}
|
||||
}
|
||||
if (!a.operate) {
|
||||
throw { name: "OperationError",
|
||||
message: "Operation on an invalid type" };
|
||||
}
|
||||
|
||||
return a.operate(this.op, b);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user