mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Include requested URL into the message on network errors (#4945)
This commit is contained in:
parent
1aad015bbb
commit
a4c500176b
@ -31,6 +31,8 @@ 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
|
||||||
|
raise e.class, "#{e.message} on #{@url}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def headers
|
def headers
|
||||||
|
Loading…
Reference in New Issue
Block a user