Skip to content

Commit

Permalink
Update to inherit from correct Faraday error
Browse files Browse the repository at this point in the history
The update to Faraday is causing `require "octokit"` to break. Updating
to `Faraday::ClientError` fixes it and is correct based on Faraday code:
https://github.com/lostisland/faraday/blob/master/lib/faraday/error.rb
  • Loading branch information
Gasparila committed Sep 27, 2019
1 parent c685466 commit 3e9054b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octokit/middleware/follow_redirects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module Octokit
module Middleware

# Public: Exception thrown when the maximum amount of requests is exceeded.
class RedirectLimitReached < Faraday::Error::ClientError
class RedirectLimitReached < Faraday::ClientError
attr_reader :response

def initialize(response)
Expand Down

0 comments on commit 3e9054b

Please sign in to comment.