mirror of
https://github.com/ultraworkers/claw-code.git
synced 2026-05-30 03:35:20 +08:00
fix: make cc2 validator directory board error concise (#3179)
This commit is contained in:
parent
60f44d314b
commit
a88d52fe88
@ -49,6 +49,9 @@ def main() -> int:
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print(f"error: board not found at {board_path}")
|
print(f"error: board not found at {board_path}")
|
||||||
return 1
|
return 1
|
||||||
|
except IsADirectoryError:
|
||||||
|
print(f"error: board path is a directory: {board_path}")
|
||||||
|
return 1
|
||||||
except json.JSONDecodeError as exc:
|
except json.JSONDecodeError as exc:
|
||||||
print(f"error: invalid board JSON at {board_path}: {exc}")
|
print(f"error: invalid board JSON at {board_path}: {exc}")
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user