From c0f468a8718887f081f55696db4b253e246a7b27 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 13 Oct 2026 22:00:44 +0200 Subject: [PATCH] horizon-ctl: horizon-ctl - returns the last failure's status Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/bin/horizon-ctl/main.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/crates/horizon-client/src/bin/horizon-ctl/main.rs b/crates/horizon-client/src/bin/horizon-ctl/main.rs index 193f84410..39bcc1d8e 100644 --- a/crates/horizon-client/src/bin/horizon-ctl/main.rs +++ b/crates/horizon-client/src/bin/horizon-ctl/main.rs @@ -406,15 +406,8 @@ fn main() -> ExitCode { UNREACHABLE } }, - Some("-") => { - // The original form: stdin, keep going, status 1 if anything failed. - let status = script(&mut session, std::io::stdin().lock(), true, pretty); - if status == 0 { - 0 - } else { - status.min(GAME_ERROR).max(1) - } - } + // The original form: stdin, keep going after errors. + Some("-") => script(&mut session, std::io::stdin().lock(), true, pretty), Some("script") => { let keep_going = args.iter().any(|a| a == "--keep-going"); match args.iter().skip(1).find(|a| !a.starts_with("--")) {