Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b108e06

Browse files
Changing the log output for KeychainEmptyException
1 parent 8c6cdfa commit b108e06

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/GitHub.Api/Application/ApiClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ private async Task<GitHubUser> GetCurrentUserInternal()
258258

259259
return (await githubClient.User.Current()).ToGitHubUser();
260260
}
261+
catch (KeychainEmptyException)
262+
{
263+
logger.Warning("Keychain is empty");
264+
throw;
265+
}
261266
catch (Exception ex)
262267
{
263268
logger.Error(ex, "Error Getting Current User");

0 commit comments

Comments
 (0)