From b470b9a5b3a3d1028a0c050d347f9ba828900e3a Mon Sep 17 00:00:00 2001 From: mappu Date: Mon, 4 Jun 2018 16:44:04 +1200 Subject: [PATCH] immediate failure on bad upstream connection states --- NTFServer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NTFServer.go b/NTFServer.go index b74d128..ea06029 100644 --- a/NTFServer.go +++ b/NTFServer.go @@ -119,7 +119,7 @@ func NewNTFServer(configFile string, verbose bool) (*NTFServer, error) { err := ret.LaunchUpstreamWorker(telegramUserId, hubNick) if err != nil { - return nil, fmt.Errorf("Reconnecting upstream for '%s': %s", hubNick, err.Error()) // fatal + log.Fatalf("Couldn't reconnect upstream for '%s': %s", hubNick, err.Error()) // fatal - inconsistent DB is the only possible cause } launchedAny = true