diff options
Diffstat (limited to 'auth/client.go')
-rw-r--r-- | auth/client.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/auth/client.go b/auth/client.go index 7268b8f..f266a42 100644 --- a/auth/client.go +++ b/auth/client.go @@ -40,10 +40,12 @@ func setClientId(clientId string) { func deleteClientId() { err := keyring.Delete(serviceName + clientSuffix, userName) - // TODO: if secret doesnt exist dont show error + // if secret doesnt exist dont show error if err != nil { - fmt.Println(err) - os.Exit(1) + if err.Error() != "secret not found in keyring" { + fmt.Println("Error while deleting Client ID", err.Error()) + os.Exit(1) + } } } |