mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-16 20:03:24 +00:00
Suppress backtrace from Request#perform (#5174)
This commit is contained in:
parent
c567c87453
commit
01d6aa0397
|
@ -32,7 +32,7 @@ class Request
|
||||||
def perform
|
def perform
|
||||||
http_client.headers(headers).public_send(@verb, @url.to_s, @options)
|
http_client.headers(headers).public_send(@verb, @url.to_s, @options)
|
||||||
rescue => e
|
rescue => e
|
||||||
raise e.class, "#{e.message} on #{@url}"
|
raise e.class, "#{e.message} on #{@url}", e.backtrace[0]
|
||||||
end
|
end
|
||||||
|
|
||||||
def headers
|
def headers
|
||||||
|
|
Loading…
Reference in a new issue