all: ensure propagated errors in fmt.Errorf errors are wrapped with %w and not %s nor %v #16536
Labels
T:Bug
Type: Code Hygiene
General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Summary of Bug
I ran this rough grep pattern
git grep 'return .*fmt.Errorf.\+".\+err' | grep -v "test\|%w"
which expoosed these unpropagated values
We got a whole bunch of unpropagated, please see https://go.dev/blog/go1.13-errors and most definitely we want to propagate the original error in our returns
/cc @elias-orijtech
The text was updated successfully, but these errors were encountered: