Skip to content

Commit

Permalink
Show which API call failed
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 20, 2019
1 parent afbf5dc commit 78438b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Netkan/Sources/Github/GithubApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private string Call(string path, string mimeType = null)
{
if (k.responseStatus == 403 && k.responseHeader.Contains("X-RateLimit-Remaining: 0"))
{
throw new Kraken("GitHub API rate limit exceeded.");
throw new Kraken($"GitHub API rate limit exceeded: {path}");
}
throw;
}
Expand Down

0 comments on commit 78438b3

Please sign in to comment.