Skip to content

Commit

Permalink
server: expose QUIC listen error
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Feb 24, 2021
1 parent 2945f03 commit 8cf7bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func New(listenAddr string, cert tls.Certificate, backend string, tlsCompat bool
NextProtos: tlsProtos,
}, &quic.Config{MaxIdleTimeout: 5 * time.Second})
if err != nil {
return Server{}, errors.New("could not start QUIC listener")
return Server{}, errors.New("could not start QUIC listener: " + err.Error())
}

return Server{Listener: listener, Backend: backend}, nil // nil error
Expand Down

0 comments on commit 8cf7bfa

Please sign in to comment.