WireGuard / wgctrl-go

Package wgctrl enables control of WireGuard interfaces on multiple platforms.
https://godoc.org/golang.zx2c4.com/wireguard/wgctrl
MIT License
753 stars 84 forks source link

wgtypes: add Error type #13

Open mdlayher opened 6 years ago

mdlayher commented 6 years ago

At the moment I'm doing some kind of nasty fmt.Errorf in internal/wguser, and internal/wgnl is propagating raw unix.Errno errors I believe. We should wrap these in a nicer error type and consider implementing our own version of IsNotExist and similar that provides more detail than the stdlib one we are using now.