Skip to content

Commit

Permalink
output the request method when proxy returns an error
Browse files Browse the repository at this point in the history
  • Loading branch information
rimian committed Nov 24, 2015
1 parent 91bd284 commit 2062309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/billy/handlers/proxy_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def handle_request(method, url, headers, body)

unless allowed_response_code?(response[:status])
if Billy.config.non_successful_error_level == :error
return { error: "Request failed due to response status #{response[:status]} for '#{url}' which was not allowed." }
return { error: "#{method} Request failed due to response status #{response[:status]} for '#{url}' which was not allowed." }
else
Billy.log(:warn, "puffing-billy: Received response status code #{response[:status]} for '#{url}'")
end
Expand Down

0 comments on commit 2062309

Please sign in to comment.