Skip to content

Commit 863a4e5

Browse files
committed
fix: error message to have the correct file names
1 parent 5433a0e commit 863a4e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Parser {
4242
if (!isDirectory) {
4343
const fileName = path.basename(dirOrFile);
4444
if (!CODIFY_FILE_REGEX.test(fileName)) {
45-
throw new Error(`Invalid file path provided ${dirOrFile} ${fileName}. Expected the file to be *codify.jsonc, *codify.json5, *codify.json, or *codify.yaml `)
45+
throw new Error(`Invalid file path provided ${dirOrFile} ${fileName}. Expected the file to be *.codify.jsonc, *.codify.json5, *.codify.json, or *.codify.yaml `)
4646
}
4747

4848
return [dirOrFile];

0 commit comments

Comments
 (0)