Skip to content

Commit

Permalink
chore: improve invalid file error message (#1682)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni authored Sep 16, 2024
1 parent 89f5ba7 commit b420864
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/release_plz/src/args/manifest_command.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::path::Path;

use anyhow::Context as _;
use cargo_metadata::camino::{Utf8Path, Utf8PathBuf};
use release_plz_core::fs_utils::to_utf8_path;

Expand All @@ -25,6 +26,6 @@ pub trait ManifestCommand {
_ => {
anyhow::anyhow!(e)
}
})
}).with_context(|| format!("Failed to read metadata from manifest at {manifest}"))
}
}

0 comments on commit b420864

Please sign in to comment.