mirror of
https://github.com/samsonjs/instapaper.git
synced 2026-03-25 08:55:49 +00:00
prioritize response body errors over response codes
This commit is contained in:
parent
2e4fbdfc27
commit
1c9a381fff
1 changed files with 1 additions and 1 deletions
|
|
@ -46,9 +46,9 @@ module Instapaper
|
|||
end
|
||||
|
||||
def fail_if_error(response, raw)
|
||||
fail_if_error_response_code(response)
|
||||
fail_if_error_unparseable_response(response) unless raw
|
||||
fail_if_error_in_body(parsed_response(response))
|
||||
fail_if_error_response_code(response)
|
||||
end
|
||||
|
||||
def fail_if_error_response_code(response)
|
||||
|
|
|
|||
Loading…
Reference in a new issue