From 02ddf85af2d2508b17220918dc3b4be57f1f396a Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Thu, 23 Apr 2020 15:54:12 -0500 Subject: [PATCH] Do not terminate if local authentication failed on start --- pkg/cli/cli.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 7014d17..9f4fef8 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -93,11 +93,18 @@ func initClient() { fmt.Println("Error:", msg) return } + // Do not bail if local server is not running. if strings.Contains(msg, "connection refused") { fmt.Println("Error:", msg) return } + + // Do not bail if local auth is invalid + if strings.Contains(msg, "authentication failed") { + fmt.Println("Error:", msg) + return + } } exitWithMessage(msg)