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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
app.go
View file

@ -441,7 +441,7 @@ func (h *Headscale) Serve() error {
networkListener, err := net.Listen("tcp", h.cfg.Addr) networkListener, err := net.Listen("tcp", h.cfg.Addr)
if err != nil { 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. // Create the cmux object that will multiplex 2 protocols on the same port.