about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorunarist <m.unarist@gmail.com>2017-09-14 23:12:50 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-09-14 16:12:50 +0200
commita4c500176bcecb18192c7522c7c977e652426273 (patch)
tree0997f995e3284ec33445dce45947d2aac37b1ad0 /app
parent1aad015bbbe7957827c2b921a21c53ce11c6ac36 (diff)
Include requested URL into the message on network errors (#4945)
Diffstat (limited to 'app')
-rw-r--r--app/lib/request.rb2
1 files changed, 2 insertions, 0 deletions
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