mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Merge pull request #463 from sosedoff/skip-local-auth-fail
Do not terminate if local authentication failed on start
This commit is contained in:
commit
111b1720b4
@ -93,11 +93,18 @@ func initClient() {
|
|||||||
fmt.Println("Error:", msg)
|
fmt.Println("Error:", msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Do not bail if local server is not running.
|
// Do not bail if local server is not running.
|
||||||
if strings.Contains(msg, "connection refused") {
|
if strings.Contains(msg, "connection refused") {
|
||||||
fmt.Println("Error:", msg)
|
fmt.Println("Error:", msg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not bail if local auth is invalid
|
||||||
|
if strings.Contains(msg, "authentication failed") {
|
||||||
|
fmt.Println("Error:", msg)
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exitWithMessage(msg)
|
exitWithMessage(msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user