Wrap error with context

Proprietary

Replace bare return err with return fmt.Errorf("funcName: %%w", err) using the enclosing function name as context.

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

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