From a88d52fe888f8d59dddc6d0e344daf4c143fecf7 Mon Sep 17 00:00:00 2001 From: Bellman <54757707+Yeachan-Heo@users.noreply.github.com> Date: Thu, 28 May 2026 10:38:57 +0900 Subject: [PATCH] fix: make cc2 validator directory board error concise (#3179) --- 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