diff --git a/errval/errval.go b/errval/errval.go index 304fa4b..a8ccfb0 100644 --- a/errval/errval.go +++ b/errval/errval.go @@ -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. //