Skip to content

Commit

Permalink
fix: display parse error corectly on cog verify
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Nov 30, 2021
1 parent 8ee7a2e commit 618499e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/bin/cog.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#![cfg(not(tarpaulin_include))]
use std::process::exit;

use anyhow::{Context, Result};
use clap::{App, AppSettings, Arg, Shell, SubCommand};

Expand Down Expand Up @@ -72,13 +70,7 @@ fn main() -> Result<()> {
.map(|cogito| cogito.get_committer().unwrap())
.ok();

match commit::verify(author, message) {
Ok(()) => exit(0),
Err(err) => {
eprintln!("{}", err);
exit(1);
}
}
commit::verify(author, message)?;
}

CHECK => {
Expand Down

0 comments on commit 618499e

Please sign in to comment.