Skip to content

Commit

Permalink
Merge pull request #135 from gtd/master
Browse files Browse the repository at this point in the history
Mogli::Authenticator swallows the cause of API errors
  • Loading branch information
mmangino committed Mar 5, 2013
2 parents 9bf7e0d + 499a57e commit d4a4afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mogli/authenticator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def get_access_token_for_application
end

def raise_exception_if_required(response)
raise Mogli::Client::HTTPException if response.code != 200
raise Mogli::Client::HTTPException, response.body if response.code != 200
end

end
Expand Down

0 comments on commit d4a4afe

Please sign in to comment.