Skip to content

Commit

Permalink
Missed one variant of error.into()
Browse files Browse the repository at this point in the history
  • Loading branch information
papertigers committed Nov 6, 2023
1 parent ad8e5d6 commit cafa924
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dev-tools/omicron-dev/src/bin/omicron-dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@

//! Developer tool for easily running bits of Omicron
use anyhow::bail;
use anyhow::Context;
use anyhow::{anyhow, bail, Context};
use camino::Utf8Path;
use camino::Utf8PathBuf;
use clap::Args;
Expand Down Expand Up @@ -34,7 +33,7 @@ async fn main() -> Result<(), anyhow::Error> {
OmicronDb::CertCreate { ref args } => cmd_cert_create(args).await,
};
if let Err(error) = result {
fatal(CmdError::Failure(error.into()));
fatal(CmdError::Failure(anyhow!(error)));
}
Ok(())
}
Expand Down

0 comments on commit cafa924

Please sign in to comment.