fix: make cc2 validator directory board error concise (#3179)

This commit is contained in:
Bellman
2026-05-28 10:38:57 +09:00
committed by GitHub
parent 60f44d314b
commit a88d52fe88

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