Skip to content

Commit

Permalink
fix: correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Jan 15, 2025
1 parent e6b6095 commit 66520df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub enum ResolveError {
NoLinks(Cid, SlashedPath),

/// Path attempted to resolve through a property, index or link which did not exist.
#[error("no link named in path {1:?}")]
#[error("no link named {n:?} under {0}", n = .1.iter().last().unwrap())]
NotFound(Cid, SlashedPath),

/// Tried to use a path neiter containing nor resolving to a Cid.
Expand Down

0 comments on commit 66520df

Please sign in to comment.