diff --git a/.goreleaser.yml b/.goreleaser.yml index a7b522d..00d3adb 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -133,6 +133,8 @@ changelog: exclude: - "^docs:" - "^test:" + - "^lint" + - "^happy linting" release: github: diff --git a/wgquick/wg.go b/wgquick/wg.go index d1a3cd7..88b9a31 100644 --- a/wgquick/wg.go +++ b/wgquick/wg.go @@ -123,7 +123,7 @@ func Down(cfg *Config, iface string, uspace bool, logger logrus.FieldLogger) err // By removing it, it will close itself. if uspace { if err := os.Remove(fmt.Sprintf("/var/run/wireguard/%s.sock", iface)); err != nil { - return err + return fmt.Errorf("could not remove wireguard-go sock file: %w", err) } }