Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Commit 8981591

Browse files
committed
fix(css-module): improve error message in path resolution
This commit changes the error message that is displayed when path resolution fails in getCssModuleImports. Instead of a generic message, it now displays the specific error message returned by the system.
1 parent e94eb61 commit 8981591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/css-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export async function getCssModuleImports(
4646
const [err, resolved] = await to(resolvePath(specifier, { url: filename }));
4747

4848
if (err != null) {
49-
console.error(`Failed to resolve path: ${specifier}`);
49+
console.error(err.message);
5050
return undefined;
5151
}
5252

0 commit comments

Comments
 (0)