mirror of
https://github.com/therootcompany/telebit.git
synced 2025-04-20 06:40:41 +00:00
bugfix: invert if else error codes
This commit is contained in:
parent
830c401030
commit
89e4cec024
@ -335,7 +335,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
_, err := mgmt.Register(*authURL, ClientSecret, ppid)
|
_, err := mgmt.Register(*authURL, ClientSecret, ppid)
|
||||||
if nil != err {
|
if nil != err {
|
||||||
if !strings.Contains(err.Error(), `"E_NOT_FOUND"`) {
|
if strings.Contains(err.Error(), `"E_NOT_FOUND"`) {
|
||||||
fmt.Fprintf(os.Stderr, "invalid client credentials: %s\n", err)
|
fmt.Fprintf(os.Stderr, "invalid client credentials: %s\n", err)
|
||||||
// the server confirmed that the client is bad
|
// the server confirmed that the client is bad
|
||||||
os.Exit(exitBadConfig)
|
os.Exit(exitBadConfig)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user