Skip to content

Commit 7a824d6

Browse files
committed
fix(cluster): return error code if destdir missing
Previously, the script only logged an error when the 'destdir' argument was not provided, but did not exit with a non-zero status. This change ensures the script returns 1 in such cases, allowing calling processes to detect the failure.
1 parent e72184c commit 7a824d6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cardano_node_tests/prepare_cluster_scripts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ def main() -> int:
9191

9292
if not args.dest_dir:
9393
LOGGER.error("The 'destdir' must be set.")
94+
return 1
95+
9496
destdir = pl.Path(args.dest_dir)
9597

9698
testnet_variant = args.testnet_variant

0 commit comments

Comments
 (0)