Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/getClassName.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const getClassNameForNamespacedStyleName = (styleName: string, styleModuleImport
}

if (!styleModuleImportMap[importName]) {
throw new Error('Import does not exist.');
throw new Error('CSS module import does not exist.');
}

if (!styleModuleImportMap[importName][moduleName]) {
throw new Error('Module does not exist.');
throw new Error('CSS module does not exist.');
}

return styleModuleImportMap[importName][moduleName];
Expand All @@ -53,7 +53,7 @@ export default (styleNameValue: string, styleModuleImportMap: StyleModuleImportM
const styleModuleMap: StyleModuleMapType = styleModuleImportMap[styleModuleImportMapKeys[0]];

if (!styleModuleMap[styleName]) {
throw new Error('Module cannot be resolved.');
throw new Error('CSS module cannot be resolved.');
}

return styleModuleMap[styleName];
Expand Down