Skip to content
Snippets Groups Projects
Commit 685fa272 authored by Frank Blaauw's avatar Frank Blaauw
Browse files

Added a .to_s when a hash is thrown

parent 46ec78f8
Branches
Tags
1 merge request!15fb-better-error-on-500
......@@ -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