From e13f40bf66808d62774e43b42c68545a417b1af9 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Fri, 27 Oct 2023 05:36:09 -0700 Subject: [PATCH] main: fix dropped error --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 883e562d6..08a32ff71 100644 --- a/main.go +++ b/main.go @@ -71,6 +71,9 @@ func Main(c *config.C, configTest bool, buildVersion string, logger *logrus.Logg tunCidr := certificate.Details.Ips[0] ssh, err := sshd.NewSSHServer(l.WithField("subsystem", "sshd")) + if err != nil { + return nil, util.ContextualizeIfNeeded("Error while creating SSH server", err) + } wireSSHReload(l, ssh, c) var sshStart func() if c.GetBool("sshd.enabled", false) {