Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Commit

Permalink
use anyhow bail to return error (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
avinassh authored Oct 11, 2023
1 parent a022f5e commit 146df90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bottomless-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ fn verify_db(path: &PathBuf) -> Result<()> {
if result == "ok" {
Ok(())
} else {
Err(anyhow::anyhow!(result.to_string()))
anyhow::bail!("{result}")
}
}

Expand Down

0 comments on commit 146df90

Please sign in to comment.