Skip to content

Commit

Permalink
Raise exception in case of error status (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrykov authored Mar 13, 2019
1 parent 311e48b commit f644d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/selligent/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def connection
conn.request :selligent_auth

conn.response :json, parser_options: { symbolize_names: true }
conn.response :raise_error

conn.adapter Faraday.default_adapter
end
Expand Down

0 comments on commit f644d0f

Please sign in to comment.