From 1d72b87bca4042d36cea1f1e775803a5252cd224 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 15 Jun 2022 16:32:32 +0530 Subject: now macli handles logging in by itself --- auth/client.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'auth/client.go') 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) + } } } -- cgit v1.2.3