Skip to content

Commit

Permalink
refactor: add more descriptive error messge to file resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-welker committed Aug 7, 2022
1 parent d15f746 commit 32e60f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/src/actions/file/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ pub trait FileAction: Action {
.join("files")
.join(path)
.normalize()
.map_err(|e| {
anyhow!(
"Resolution of {} failed in manifest {} because {}",
path.to_string(),
manifest.name.as_ref().unwrap(),
e.to_string()
)
})
.unwrap()
.as_path()
.to_path_buf()
Expand Down

0 comments on commit 32e60f5

Please sign in to comment.