Skip to content

Commit 92bb1b4

Browse files
fix: use "not a directory" wording in --path error message
Address review feedback — the error body now says "not a directory" instead of "is a file", which is more accurate for non-directory path types. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b2fc8bc commit 92bb1b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/theme/src/cli/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const themeFlags = {
2828
if (!isDirectorySync(resolvedPath)) {
2929
renderError({
3030
headline: 'The path must be a directory, not a file.',
31-
body: [`The provided path is a file: ${resolvedPath}`, `Did you mean: ${dirname(resolvedPath)}`],
31+
body: [`The provided path is not a directory: ${resolvedPath}`, `Did you mean: ${dirname(resolvedPath)}`],
3232
})
3333
return process.exit(1)
3434
}

0 commit comments

Comments
 (0)