diff --git a/src/run.rs b/src/run.rs index a909c3b..c2bf543 100644 --- a/src/run.rs +++ b/src/run.rs @@ -121,11 +121,19 @@ fn run_loop(procs: Vec, holds: Option, poll: Poll, signals: Signals) - } // process exited Ok(ProcessEvent::Exit(status)) => { - info!( - "[{}] exited with status {}", - &proc.app.name.yellow(), - status - ); + if let Some(code) = status.code() { + info!( + "[{}] exited with code {}", + &proc.app.name.yellow(), + code + ); + } else { + info!( + "[{}] exited with unknown code", + &proc.app.name.yellow() + ); + } + let hold = proc.app.hold.unwrap_or(false); if proc.app.check_restart(status) { if let Ok(p) = restart_app(proc) {