From: unarist Date: Thu, 14 Sep 2017 14:12:50 +0000 (+0900) Subject: Include requested URL into the message on network errors (#4945) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=a4c500176bcecb18192c7522c7c977e652426273;p=mastodon.git Include requested URL into the message on network errors (#4945) --- diff --git a/app/lib/request.rb b/app/lib/request.rb index c01e07925..b083edaf7 100644 --- a/app/lib/request.rb +++ b/app/lib/request.rb @@ -31,6 +31,8 @@ class Request def perform http_client.headers(headers).public_send(@verb, @url.to_s, @options) + rescue => e + raise e.class, "#{e.message} on #{@url}" end def headers