Do not terminate if local authentication failed on start
This commit is contained in:
parent
82b2918963
commit
02ddf85af2
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user