Skip to content

Commit 525a5d4

Browse files
committed
update invalid path error message
1 parent d52dea9 commit 525a5d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def validate_relative_directory_path(path: str) -> tuple[bool, str]:
437437
# Normalize path separators for checking
438438
normalized = path.replace("\\", "/")
439439
if ".." in normalized:
440-
return False, "Path cannot contain '..' (parent directory traversal)"
440+
return False, "Path cannot contain '..'. Use a relative path like 'tests' or 'src/app' instead"
441441

442442
# Check for absolute paths, invalid characters, and validate path format
443443
error_msg = ""

0 commit comments

Comments
 (0)