Skip to content
Snippets Groups Projects
Commit a6bfbc19 authored by frbl's avatar frbl Committed by GitHub
Browse files

Merge pull request #15 from roqua/fb-better-error-on-500

fb-better-error-on-500
parents 46ec78f8 7a190e46
Branches
Tags
No related merge requests found
......@@ -47,7 +47,7 @@ module Fizzy
when 401
access_denied(response)
when 500
raise response.parsed_response || "Received HTTP response code #{response.code}!"
raise((response.parsed_response || "Received HTTP response code #{response.code}!").to_s)
else
response
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment