From 9ae703497a24167570b2696acb07baec7c7fa56b Mon Sep 17 00:00:00 2001 From: Yeachan-Heo Date: Thu, 28 May 2026 01:34:20 +0000 Subject: [PATCH] fix: make cc2 validator directory board error concise --- scripts/validate_cc2_board.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/validate_cc2_board.py b/scripts/validate_cc2_board.py index 643326a4..226ffa21 100755 --- a/scripts/validate_cc2_board.py +++ b/scripts/validate_cc2_board.py @@ -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