Expect onError function is always provided

This can't really be optional.
This commit is contained in:
Adam Wathan 2017-11-16 07:51:56 -05:00
parent e65b2df5a8
commit 6807e45e1e

View file

@ -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.`)
}