diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-15 16:32:32 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-06-15 16:32:32 +0530 |
commit | 1d72b87bca4042d36cea1f1e775803a5252cd224 (patch) | |
tree | 04a0185a473c7f9acd5c92bc4091d7c66f102e6b /auth/client.go | |
parent | 83e1ce2508ea035fb299a88fe89e82f34e609499 (diff) |
now macli handles logging in by itself
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) + } } } |