commit: a4c500176bcecb18192c7522c7c977e652426273
parent: 1aad015bbbe7957827c2b921a21c53ce11c6ac36
Author: unarist <m.unarist@gmail.com>
Date: Thu, 14 Sep 2017 23:12:50 +0900
Include requested URL into the message on network errors (#4945)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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