diff options
author | unarist <m.unarist@gmail.com> | 2017-09-14 23:12:50 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-14 16:12:50 +0200 |
commit | a4c500176bcecb18192c7522c7c977e652426273 (patch) | |
tree | 0997f995e3284ec33445dce45947d2aac37b1ad0 | |
parent | 1aad015bbbe7957827c2b921a21c53ce11c6ac36 (diff) |
Include requested URL into the message on network errors (#4945)
-rw-r--r-- | app/lib/request.rb | 2 |
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 |