From 4fe6e216037a59e7a48f1e549ccbb57ca29272e2 Mon Sep 17 00:00:00 2001 From: Leonid Podolny Date: Sun, 4 Aug 2024 12:29:11 -0400 Subject: [PATCH] tls_config.go: don't swallow error Signed-off-by: Leonid Podolny --- web/tls_config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/tls_config.go b/web/tls_config.go index 00dae1e4..b16ded1d 100644 --- a/web/tls_config.go +++ b/web/tls_config.go @@ -317,7 +317,7 @@ func ListenAndServe(server *http.Server, flags *FlagConfig, logger log.Logger) e } else { listener, err = net.Listen("tcp", address) if err != nil { - return nil + return err } } defer listener.Close()