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

Commit 146df90

Browse files
authored
use anyhow bail to return error (#756)
1 parent a022f5e commit 146df90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bottomless-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ fn verify_db(path: &PathBuf) -> Result<()> {
218218
if result == "ok" {
219219
Ok(())
220220
} else {
221-
Err(anyhow::anyhow!(result.to_string()))
221+
anyhow::bail!("{result}")
222222
}
223223
}
224224

0 commit comments

Comments
 (0)