diff --git a/src/getClassName.js b/src/getClassName.js index 24f2e49..2b5b53f 100644 --- a/src/getClassName.js +++ b/src/getClassName.js @@ -56,7 +56,7 @@ export default (styleNameValue: string, styleModuleImportMap: StyleModuleImportM const styleModuleMap: StyleModuleMapType = styleModuleImportMap[styleModuleImportMapKeys[0]]; if (!styleModuleMap[styleName]) { - throw new Error('CSS module cannot be resolved.'); + throw new Error('Could not resolve the styleName \'' + styleName + '\'.'); } return styleModuleMap[styleName];