Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 6ab9d3f

Browse files
committed
Better error on missing apply
1 parent b3dc286 commit 6ab9d3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/expandApplyAtRules.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ function expandApplyAtRules(context) {
102102

103103
for (let applyCandidate of applyCandidates) {
104104
if (!applyClassCache.has(applyCandidate)) {
105-
throw new Error(
106-
`The ${applyCandidate} class does not exist. If it's a custom class, make sure it is defined within a \`@layer\` directive.`
105+
throw apply.error(
106+
`The \`${applyCandidate}\` class does not exist. If \`${applyCandidate}\` is a custom class, make sure it is defined within a \`@layer\` directive.`
107107
)
108108
}
109109

0 commit comments

Comments
 (0)