diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-05-03 00:53:49 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-05-04 21:56:26 +0300 |
commit | 64e811957795293b647bda7aef23ffbd92082614 (patch) | |
tree | a988937a8af241c4e79c7d92e6da7c17bd09ddbd /lib | |
parent | 63a5d98a7c921289e9b43f4b54c03614427f7eda (diff) |
Improved code styling and added a HTTParty rescue block
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/prometheus.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/prometheus.rb b/lib/gitlab/prometheus.rb index 94541009100..aa9810c5c41 100644 --- a/lib/gitlab/prometheus.rb +++ b/lib/gitlab/prometheus.rb @@ -54,6 +54,8 @@ module Gitlab raise PrometheusError, "Can't connect to #{url}" rescue OpenSSL::SSL::SSLError raise PrometheusError, "#{url} contains invalid SSL data" + rescue HTTParty::Error + raise PrometheusError, "An error has ocurred" end def handle_response(response) |