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 generator missing source error concise (#3174)

Bellman760e69675c8f
diff --git a/scripts/generate_cc2_board.py b/scripts/generate_cc2_board.py
index 16f6f455..4612d262 100755
--- a/scripts/generate_cc2_board.py
+++ b/scripts/generate_cc2_board.py
@@ -504,7 +504,11 @@ def main() -> int:
repo_root = args.repo_root.resolve()
out_dir = args.out_dir or (repo_root / ".omx" / "cc2")
out_dir.mkdir(parents=True, exist_ok=True)
- board = build_board(repo_root)
+ try:
+ board = build_board(repo_root)
+ except FileNotFoundError as exc:
+ print(f"error: {exc}", file=sys.stderr)
+ return 1
board_json = out_dir / "board.json"
board_md = out_dir / "board.md"
board_json.write_text(json.dumps(board, indent=2, sort_keys=True) + "\n", encoding="utf-8")