Expect onError function is always provided
This can't really be optional.
This commit is contained in:
parent
e65b2df5a8
commit
6807e45e1e
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ function findMixin(css, mixin, onError) {
|
|||
}
|
||||
})
|
||||
|
||||
if (_.isEmpty(matches) && _.isFunction(onError)) {
|
||||
if (_.isEmpty(matches)) {
|
||||
onError(`\`@apply\` cannot be used with ${mixin} because ${mixin} either does not exist, or it's actual definition includes a pseudo-class like :hover, :active, etc.`)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue