Skip to content

Commit

Permalink
Improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Sep 23, 2024
1 parent a6800c8 commit 99448d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ fn find_values_yaml(
) -> Result<Vec<RepoChangeset<RealClient>>, anyhow::Error> {
let repo = Repository::open(workspace).context("failed to open repository")?;

let base_tree = repo::tree_for_commit_ref(&repo, base)?;
let head_tree = repo::tree_for_commit_ref(&repo, head)?;
let base_tree = repo::tree_for_commit_ref(&repo, base).context("while parsing base")?;
let head_tree = repo::tree_for_commit_ref(&repo, head).context("while parsing head")?;
let diff_tree = repo
.diff_tree_to_tree(Some(&head_tree), Some(&base_tree), None)
.with_context(|| format!("cannot diff trees {} and {}", base_tree.id(), head_tree.id()))?;
Expand Down

0 comments on commit 99448d8

Please sign in to comment.