diff --git a/src/rust/src/parser.rs b/src/rust/src/parser.rs index 2d4a7b6cc..d3833fbaa 100644 --- a/src/rust/src/parser.rs +++ b/src/rust/src/parser.rs @@ -803,8 +803,10 @@ impl OptionsExt for Options { if let Some(ref psm) = args.psm { if !(0..=13).contains(psm) { - println!("--psm must be between 0 and 13"); - std::process::exit(ExitCode::MalformedParameter as i32); + fatal!( + cause = ExitCause::MalformedParameter; + "--psm must be between 0 and 13" + ); } self.psm = *psm as _; }