Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
feat: log exit code of every command that is run
Lars Wirzenius committed 11 months ago
commit 2e3101a0db1f3e4d6e3447c495dec568b46d581f
parent a907882
1 file changed +1 -1
modified src/msg.rs
@@ -1403,9 +1403,9 @@ pub mod helper {
            .map_err(|err| MessageHelperError::Command("bash", err))?;

        let exit = output.status.code().unwrap_or(NO_EXIT);
+
        adminlog.writeln(&format!("runcmd: exit={exit}"))?;

        if exit != 0 {
-
            adminlog.writeln(&format!("runcmd: exit={exit}"))?;
            indented(adminlog, "stdout", &output.stdout);
            indented(adminlog, "stderr", &output.stderr);
        }