Better error description

Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
Eugen Biegler
2021-12-07 11:44:09 +01:00
committed by GitHub
parent b4cce22415
commit 5a504fa711

2
app.go
View File

@@ -441,7 +441,7 @@ func (h *Headscale) Serve() error {
networkListener, err := net.Listen("tcp", h.cfg.Addr)
if err != nil {
return err
return fmt.Errorf("failed to bind to TCP address: %w", err)
}
// Create the cmux object that will multiplex 2 protocols on the same port.