You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd
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
4 years ago
..
cloner ipn: use cmd/cloner for Prefs.Clone 4 years ago
derper Change some os.IsNotExist to errors.Is(err, os.ErrNotExist) for non-os errors. 4 years ago
microproxy cmd/microproxy: add -insecure flag 4 years ago
mkpkg cmd/mkpkg: support adding empty directories. 4 years ago
tailscale version: use OSS repo's version when building. 4 years ago
tailscaled cmd/tailscaled: update depaware.txt 4 years ago
tsshd wgengine/monitor: don't call LinkChange when interfaces look unchanged 4 years ago