Skip to content

Commit

Permalink
fix: print to console for unknown cli commands (#595)
Browse files Browse the repository at this point in the history
Previously, these were output as `CRIT` errors, but they should just be
printed to the console.
  • Loading branch information
MicaiahReid authored May 30, 2024
1 parent bfa0362 commit f523ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/chainhook-cli/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ pub fn main() {
let opts: Opts = match Opts::try_parse() {
Ok(opts) => opts,
Err(e) => {
crit!(ctx.expect_logger(), "{e}");
println!("{}", e);
process::exit(1);
}
};
Expand Down

0 comments on commit f523ba0

Please sign in to comment.