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)