tailscale/cmd/derper
Brad Fitzpatrick 01ee638cca Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors.
os.IsNotExist doesn't unwrap errors. errors.Is does.

The ioutil.ReadFile ones happened to be fine but I changed them so
we're consistent with the rule: if the error comes from os, you can
use os.IsNotExist, but from any other package, use errors.Is.
(errors.Is always would also work, but not worth updating all the code)

The motivation here was that we were logging about failure to migrate
legacy relay node prefs file on startup, even though the code tried
to avoid that.

See golang/go#41122
2020-11-02 08:33:34 -08:00
..
derper.go Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 2020-11-02 08:33:34 -08:00
derper_test.go derp, cmd/derper: add frameWatchConns, framePeerPresent for inter-DERP routing 2020-06-03 08:03:29 -07:00
mesh.go cmd/derper: fix embarassing bug introduced in earlier refactor 2020-06-24 19:45:27 -07:00