Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

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

Bellmana88d52fe888f
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