Skip to content

Commit f58273b

Browse files
committed
Close last group only if there is no error
1 parent 57ca4e7 commit f58273b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/tracel-xtask/src/utils/process.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,14 @@ pub fn run_process_for_workspace<'a>(
145145
}
146146
}
147147

148-
if close_group {
149-
endgroup!();
150-
}
151-
152148
let status = child
153149
.wait()
154150
.expect("Should be able to wait for the process to finish.");
155151

156152
if status.success() || ignore_error {
153+
if close_group {
154+
endgroup!();
155+
}
157156
anyhow::Ok(())
158157
} else {
159158
Err(anyhow::anyhow!("{}", error_msg))

0 commit comments

Comments
 (0)