Better error description

This commit is contained in:
Eugen 2021-12-07 08:46:55 +01:00
parent a6e99525ac
commit 3a85c4d367

2
app.go
View file

@ -418,7 +418,7 @@ func (h *Headscale) Serve() error {
err = h.ensureUnixSocketIsAbsent() err = h.ensureUnixSocketIsAbsent()
if err != nil { if err != nil {
return err return fmt.Errorf("unable to remove old socket file: %w", err)
} }
socketListener, err := net.Listen("unix", h.cfg.UnixSocket) socketListener, err := net.Listen("unix", h.cfg.UnixSocket)