Skip to content

Commit e74d019

Browse files
committed
fix: Making an error message slightly nicer.
1 parent afedab9 commit e74d019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@css-blocks/core/src/BlockParser/features/construct-block.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function addStyleRules(configuration: Configuration, block: Block, rule: postcss
114114
let cleanedAlias = stripQuotes(alias);
115115
if (!CLASS_NAME_IDENT.test(cleanedAlias)) {
116116
throw new errors.InvalidBlockSyntax(
117-
`Illegal block-alias in export. "${alias}" is not a legal CSS identifier.`,
117+
`Illegal block-alias. "${alias}" is not a legal CSS identifier.`,
118118
sourceRange(configuration, block.stylesheet, file, rule),
119119
);
120120
}

0 commit comments

Comments
 (0)