Skip to content

Commit

Permalink
Clarify fallback message
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Nov 19, 2024
1 parent 4795a0f commit bae8fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (s *Shotter) Snap(value any) {
fmt.Fprintf(current, "%v", val)
default:
// Fallback, use %#v as a best effort at generic printing
s.tb.Logf("Snap: falling back to GoString for %[1]T, consider implementing snapshot.Snapper, encoding.TextMarshaler or fmt.Stringer for %[1]T", val)
s.tb.Logf("Snap: falling back to GoString for %T, consider creating a new type and implementing snapshot.Snapper, encoding.TextMarshaler or fmt.Stringer", val)
fmt.Fprintf(current, "%#v", val)
}

Expand Down

0 comments on commit bae8fa5

Please sign in to comment.