Please sign in to comment.
Replace case statement with error code to error class map
DRYing up the RaiseOctokitError class by making it unnecessary to write "error_message(response)" and such over and over. This required to load the "octokit/error" definitions before "octokit/client" because the error code to error class map is generated when the class is first parsed.
- Loading branch information...
Showing with 16 additions and 23 deletions.