Skip to content

Commit b50673e

Browse files
Don't silently fail on errors while requiring user config (#18)
1 parent ff5c8f0 commit b50673e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export async function readUserConfig(configPath: string): Promise<Config> {
1919
try {
2020
return require(configPath);
2121
} catch (err) {
22-
// Ignore the read error
22+
console.error(err);
23+
console.log('Using default config');
2324
}
2425
return {};
2526
}

0 commit comments

Comments
 (0)