use errors.Is() to check for errors (#1730)
Since go 1.13 you can wrap errors. This make it no longer possible to compare with `==`, instead you have to compare with `errors.Is()`. I noticed this problem because -h was no longer working after I stared wrapping the errors in my custom FlagErrorFunc function. Note that this is only a problem when a custom help flag is defined. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
P
Paul Holzinger committed
b9ca5949e2f58373e8e4c3823c213401f7d9d0e3
Parent: ea94a3d
Committed by GitHub <noreply@github.com>
on 6/21/2022, 2:02:33 AM