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