Skip to content

Commit

Permalink
fix: return error on LookupBySegment failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 13, 2023
1 parent f9fb3bd commit bc536b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traversal/walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (prog Progress) walkAdv(ph phase, n datamodel.Node, s selector.Selector, vi
// specific interests, recurse on those.
for _, ps := range attn {
if v, err := n.LookupBySegment(ps); err != nil {
continue
return err
} else if err := recurse(v, ps); err != nil {
return err
}
Expand Down

0 comments on commit bc536b3

Please sign in to comment.