bugfix: invert if else error codes

This commit is contained in:
AJ ONeal 2020-08-17 15:13:13 -06:00
parent 830c401030
commit 89e4cec024
1 changed files with 1 additions and 1 deletions

View File

@ -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)