Suppress backtrace from Request#perform (#5174)

This commit is contained in:
Daigo 3 Dango 2017-10-01 15:02:08 -10:00 committed by Eugen Rochko
parent 8537845323
commit 87223e9426

View file

@ -32,7 +32,7 @@ class Request
def perform
http_client.headers(headers).public_send(@verb, @url.to_s, @options)
rescue => e
raise e.class, "#{e.message} on #{@url}"
raise e.class, "#{e.message} on #{@url}", e.backtrace[0]
end
def headers