From f03d895ebfb218a986b53330af118151e7df916f Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Thu, 12 Dec 2019 17:31:22 +0000 Subject: [PATCH] don't steal error --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 7169d66..c1bc7d8 100644 --- a/main.go +++ b/main.go @@ -79,10 +79,13 @@ func Main(configPath string, configTest bool, buildVersion string) { // TODO: make sure mask is 4 bytes tunCidr := cs.certificate.Details.Ips[0] routes, err := parseRoutes(config, tunCidr) - unsafeRoutes, err := parseUnsafeRoutes(config, tunCidr) if err != nil { l.WithError(err).Fatal("Could not parse tun.routes") } + unsafeRoutes, err := parseUnsafeRoutes(config, tunCidr) + if err != nil { + l.WithError(err).Fatal("Could not parse tun.unsafe_routes") + } ssh, err := sshd.NewSSHServer(l.WithField("subsystem", "sshd")) wireSSHReload(ssh, config)