You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not against it, but it will be very prone to false positives, since
some people might actually want the error to be unwrappable.
That's why early Go 1.13 errors proposals had the
Opaque
function.
dominikh
changed the title
check calls of form fmt.Errorf("message: %v", err)
quickfix: suggest the %w verb in fmt.Errorf
Jun 1, 2020
I have relabeled this issue as a new check for quickfix, a planned set of checks that make optional suggestions strictly in the context of LSP (via gopls).
I agree with Ainar that this would cause false positives, thereby making it nonviable as an ordinary check.
fmt.Errorf("message: %w", err) is better.
The latter supports the error unwrapping API added in 1.13.
The text was updated successfully, but these errors were encountered: