fix: make cc2 validator directory board error concise

This commit is contained in:
Yeachan-Heo 2026-05-28 01:34:20 +00:00
parent 60f44d314b
commit 9ae703497a
1 changed files with 3 additions and 0 deletions

View File

@ -49,6 +49,9 @@ def main() -> int:
except FileNotFoundError:
print(f"error: board not found at {board_path}")
return 1
except IsADirectoryError:
print(f"error: board path is a directory: {board_path}")
return 1
except json.JSONDecodeError as exc:
print(f"error: invalid board JSON at {board_path}: {exc}")
return 1