Wrap error before return

Proprietary

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

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

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