Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJose Ivan Vargas <jvargas@gitlab.com>2017-05-03 00:53:49 +0300
committerJose Ivan Vargas <jvargas@gitlab.com>2017-05-04 21:56:26 +0300
commit64e811957795293b647bda7aef23ffbd92082614 (patch)
treea988937a8af241c4e79c7d92e6da7c17bd09ddbd /lib
parent63a5d98a7c921289e9b43f4b54c03614427f7eda (diff)
Improved code styling and added a HTTParty rescue block
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/prometheus.rb2
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)