Skip to content

Commit

Permalink
fix: correct use of eyre::bail!() on non-Unix platforms
Browse files Browse the repository at this point in the history
In `Cli::file_path()`, `color_eyre::eyre::bail!()` is used to return an
error on non-Unix platforms if the `podlet --unit-directory` option is
used. The `eyre` import was removed, so this resulted in a compiler
error before.

Signed-off-by: Paul Nettleton <[email protected]>
  • Loading branch information
k9withabone committed May 20, 2024
1 parent b6be7ea commit acc2397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl Cli {
}

#[cfg(not(unix))]
eyre::bail!("Cannot get Podman unit directory on non-unix system");
color_eyre::eyre::bail!("Cannot get Podman unit directory on non-Unix system");
} else if let Some(Some(path)) = &self.file {
if path.is_dir() {
path.clone()
Expand Down

0 comments on commit acc2397

Please sign in to comment.