Skip to content

Commit

Permalink
errval: don't call pretty.Write directly
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrre committed Aug 22, 2024
1 parent a7b006b commit fdc7658
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion errval/errval.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ import (
// It can be changed in order to customize how values are formatted.
//
// By default it uses [pretty.Write].
var VerboseWriter func(io.Writer, any) = pretty.Write
var VerboseWriter func(io.Writer, any) = prettyWrite

func prettyWrite(w io.Writer, v any) {
pretty.Write(w, v)
}

// Wrap adds a value to an error.
//
Expand Down

0 comments on commit fdc7658

Please sign in to comment.