mirror of
https://github.com/less/less.js.git
synced 2026-01-23 14:18:00 -05:00
Merge pull request #2120 from SomMeri/misleading-error-message-2069
Misleading error message 2069
This commit is contained in:
@@ -1066,7 +1066,8 @@ less.Parser = function Parser(env) {
|
||||
}
|
||||
|
||||
option = option && option[1];
|
||||
|
||||
if (!elements)
|
||||
error("Missing target selector for :extend().");
|
||||
extend = new(tree.Extend)(new(tree.Selector)(elements), option, index);
|
||||
if (extendList) { extendList.push(extend); } else { extendList = [ extend ]; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user