From 89e4cec024b7b88674cacde336e780d2482fbc62 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 17 Aug 2020 15:13:13 -0600 Subject: [PATCH] bugfix: invert if else error codes --- cmd/telebit/telebit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/telebit/telebit.go b/cmd/telebit/telebit.go index bccaa2c..117ad09 100644 --- a/cmd/telebit/telebit.go +++ b/cmd/telebit/telebit.go @@ -335,7 +335,7 @@ func main() { } _, err := mgmt.Register(*authURL, ClientSecret, ppid) 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) // the server confirmed that the client is bad os.Exit(exitBadConfig)