<#18129 Preserve exit code when breaking out of `-...
# github-notifications
q
#18129 Preserve exit code when breaking out of `--loop` Issue created by kaos Is your feature request related to a problem? Please describe. When running
pants --loop ...
I ~almost end it with
<ctrl>+<c>
when done/want to break out to the shell. Now
pants
always exits with a non-zero exit code in these cases, making my history buffer for the looped invocation red--flagging it as failed. Describe the solution you'd like I'd like the exit code from
<ctrl>+<c>
to reflect the exit code of the last completed goal, unless there's a goal currently running, in which case a non-zero exit code would be OK as I'm breaking it in the middle of the run so it didn't finish. Describe alternatives you've considered To live with it ;) Additional context I'm trying out the https://warp.dev terminal, and it's very good at highlighting failed commands.

image

Related issue tracking the Ctrl+C handling for `--loop`: #6288 pantsbuild/pants