gearheads
/
mastodon
Archived
2
0
Fork 0

Include requested URL into the message on network errors (#4945)

gh/stable
unarist 2017-09-14 23:12:50 +09:00 committed by Eugen Rochko
parent 1aad015bbb
commit a4c500176b
1 changed files with 2 additions and 0 deletions

View File

@ -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