mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
Add default messages for custom exceptions
Right now, our exception messages come from the API response in most cases. But if for any reason there isn't one, we supply a default. I realized these messages might make it to people's logs so it might be nice to spend time later making them even more useful.
This commit is contained in:
@@ -28,6 +28,8 @@ namespace Octokit.Tests.Exceptions
|
||||
"Mon 01 Jul 2013 5:47:53 PM -00:00",
|
||||
"ddd dd MMM yyyy h:mm:ss tt zzz",
|
||||
CultureInfo.InvariantCulture);
|
||||
|
||||
Assert.Equal("API Rate Limit exceeded", exception.Message);
|
||||
Assert.Equal(expectedReset, exception.Reset);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user