Wrap error before return
ProprietaryReplace return nil, err with return nil, fmt.Errorf("funcName: %%w", err) using the enclosing function name as context.
org. openrewrite. golang. codequality. WrapErrorBeforeReturnmod run . --recipe= org. openrewrite. golang. codequality. WrapErrorBeforeReturnInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.