main.rs: minor change to subcommand matching
This commit is contained in:
parent
34993ceb13
commit
8448097387
|
@ -68,8 +68,7 @@ async fn rust_main(arguments: yacexits::Args) -> Result<u32, (String, u32)> {
|
|||
let message = format!(
|
||||
"{}: Unimplemented subcommand.", ctx.args.sub
|
||||
);
|
||||
let code = EX_SOFTWARE;
|
||||
Err(HopError { message, code })
|
||||
Err(HopError { message, code: EX_SOFTWARE })
|
||||
},
|
||||
}?
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue