Skip to content

Commit

Permalink
Implement handling of RetryDelay::Never with an appropriate message
Browse files Browse the repository at this point in the history
  • Loading branch information
pophilpo committed Oct 27, 2023
1 parent 4152436 commit 1db6111
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,16 @@ fn start_output_loop_thread(out_rx: Receiver<ChildEvent>) -> JoinHandle<()> {
"{id}: Process exited with {} - will retry in {}",
status, delay
);
} else {
} else if delay == RetryDelay::NONE {
eprintln!(
"{id}: Process exited with {} - retrying immediately",
status
);
} else {
eprintln!(
"{id}: Process exited with {} - shutting process down",
status
);
}
}
}
Expand Down

0 comments on commit 1db6111

Please sign in to comment.