diff --git a/src/main.rs b/src/main.rs index 41f70bb4f..c5f682318 100644 --- a/src/main.rs +++ b/src/main.rs @@ -380,11 +380,14 @@ fn main() { let Opts::Contract(args) = Opts::from_args(); match exec(args.cmd) { Ok(msg) => println!("\t{}", msg), - Err(err) => eprintln!( - "{} {}", - "ERROR:".bright_red().bold(), - format!("{:?}", err).bright_red() - ), + Err(err) => { + eprintln!( + "{} {}", + "ERROR:".bright_red().bold(), + format!("{:?}", err).bright_red() + ); + std::process::exit(1); + } } }