Skip to content

Commit

Permalink
Revert 3b02b32
Browse files Browse the repository at this point in the history
  • Loading branch information
ltk committed Jan 20, 2022
1 parent d85e912 commit ab16fe8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/oktakit/response/raise_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module Response
# This class raises an Oktakit-flavored exception based
# HTTP status codes returned by the API
class RaiseError < Faraday::Response::Middleware
private

def on_complete(response)
if (error = Oktakit::Error.from_response(response))
raise error
Expand Down

0 comments on commit ab16fe8

Please sign in to comment.