aboutsummaryrefslogtreecommitdiff
path: root/cgi/servers.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-08 14:09:12 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-08 14:09:12 +0000
commit0e49abd2df932f2eadea249e7882e7e4f92c3451 (patch)
tree63fe933457857d22d6e65c471723670b68927478 /cgi/servers.go
parentc7fea22a90e879a89b2634e503c1038bba8b33d5 (diff)
downloadcommunique-0e49abd2df932f2eadea249e7882e7e4f92c3451.tar.gz
git rid of panic here
Diffstat (limited to 'cgi/servers.go')
-rw-r--r--cgi/servers.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgi/servers.go b/cgi/servers.go
index 44a636c..8538920 100644
--- a/cgi/servers.go
+++ b/cgi/servers.go
@@ -44,7 +44,7 @@ func (s *Servers) Start() {
signed, err := delivery.NewSigned(s.persister)
if err != nil {
- panic(err)
+ logger.Error(err)
return
}
@@ -74,6 +74,7 @@ func (s *Servers) Start() {
}
wg.Wait()
+ return nil
}
func startCGIServer(h config.Handler, log *zap.SugaredLogger) {