diff --git a/src/run_script.rs b/src/run_script.rs index 579b930..32890ac 100644 --- a/src/run_script.rs +++ b/src/run_script.rs @@ -170,7 +170,15 @@ pub async fn run_script( task.abort(); if !status.success() { - std::process::exit(status.code().unwrap_or(1)); + let code = status.code().unwrap_or(1); + + eprintln!( + "{} {}{}", + "Exited with status".red(), + code.to_string().red().bold(), + "!".red() + ); + std::process::exit(code); } Ok(())