Skip to content

Commit

Permalink
traversal: tweak phrasing of error message
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Rabbitson <ribasushi@protocol.ai>
  • Loading branch information
warpfork and ribasushi committed Sep 29, 2021
1 parent e917bba commit 059c0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traversal/fns.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ type ErrBudgetExceeded struct {
}

func (e *ErrBudgetExceeded) Error() string {
msg := fmt.Sprintf("traversal budget exceeded: budget for %ss reached zero as we reached path %q", e.BudgetKind, e.Path)
msg := fmt.Sprintf("traversal budget exceeded: budget for %ss reached zero while on path %q", e.BudgetKind, e.Path)
if e.Link != nil {
msg += fmt.Sprintf(" (link: %q)", e.Link)
}
Expand Down

0 comments on commit 059c0b3

Please sign in to comment.