From ab1039dad6b529b2327655a7c795dd19b49f0a6e Mon Sep 17 00:00:00 2001 From: Trevor Smith Date: Mon, 27 Feb 2017 13:57:33 -0700 Subject: [PATCH] Improve the module resolution error message. --- src/getClassName.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];