Skip to content

Commit f3ccba1

Browse files
trevorsmithgajus
authored andcommitted
feat: improve the module resolution error message. (#56)
1 parent 00dc4b3 commit f3ccba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getClassName.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default (styleNameValue: string, styleModuleImportMap: StyleModuleImportM
5656
const styleModuleMap: StyleModuleMapType = styleModuleImportMap[styleModuleImportMapKeys[0]];
5757

5858
if (!styleModuleMap[styleName]) {
59-
throw new Error('CSS module cannot be resolved.');
59+
throw new Error('Could not resolve the styleName \'' + styleName + '\'.');
6060
}
6161

6262
return styleModuleMap[styleName];

0 commit comments

Comments
 (0)