Skip to content

Commit 23e657b

Browse files
author
nik
committed
Display error when path is not found
1 parent d6b1d93 commit 23e657b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rulesGenerate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export async function rulesGenerate(
4747
const modulePath = new URL(import.meta.url).pathname;
4848
const moduleDir = path.dirname(modulePath);
4949
const alternativePath = path.resolve(moduleDir, '../src/prompts/cursor_mdc.md');
50+
console.log(pc.yellow('Warning: Could not read guidelines. Error: ' + _error + '. Try another path: ' + alternativePath));
5051

5152
guidelinesText = await fs.readFile(alternativePath, 'utf-8');
5253
} catch (innerError) {

0 commit comments

Comments
 (0)