Use .Error() method

Proprietary

Replace fmt.Sprint(err) with err.Error() for clarity.

org.openrewrite.golang.codequality.UseErrorMethod
mod run . --recipe=org.openrewrite.golang.codequality.UseErrorMethod

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.