Skip to content

Commit 7e2ff6f

Browse files
committed
Merge branch 'better_error_message' of git://github.com/CurtisHumphrey/babel-plugin-react-css-modules into CurtisHumphrey-better_error_message
2 parents 711086f + cacdd2c commit 7e2ff6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/getClassName.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ const getClassNameForNamespacedStyleName = (styleName: string, styleModuleImport
2222
}
2323

2424
if (!styleModuleImportMap[importName]) {
25-
throw new Error('CSS module import does not exist.');
25+
throw new Error('CSS module import,' + importName + ', does not exist.');
2626
}
2727

2828
if (!styleModuleImportMap[importName][moduleName]) {
29-
throw new Error('CSS module does not exist.');
29+
throw new Error('CSS module,' + moduleName + ', does not exist in import, ' + importName + '.');
3030
}
3131

3232
return styleModuleImportMap[importName][moduleName];

0 commit comments

Comments
 (0)