diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-07-06 00:05:24 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-07-06 00:05:24 +0300 |
commit | 357f9898d586a0310a1111c0c5763c8707c4fb02 (patch) | |
tree | 4c68a22798b5d863d849e44e679e09cf32b1e9ef /app | |
parent | 0cb361fe8f4bd06d9f42e3e7f797631acb4f8d60 (diff) |
Add OpenSSL::OpenSSLError to HTTP_ERRORS
Some services can raise OpenSSL::X509::CertificateError due
to an invalid SSL certificates, with OpenSSL::OpenSSLError
we can handle these errors.
Diffstat (limited to 'app')
-rw-r--r-- | app/models/project_services/drone_ci_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/drone_ci_service.rb b/app/models/project_services/drone_ci_service.rb index dbdc8345c93..d2660051343 100644 --- a/app/models/project_services/drone_ci_service.rb +++ b/app/models/project_services/drone_ci_service.rb @@ -46,7 +46,7 @@ class DroneCiService < CiService end def commit_status(sha, ref) - with_reactive_cache(sha, ref) {|cached| cached[:commit_status] } + with_reactive_cache(sha, ref) { |cached| cached[:commit_status] } end def calculate_reactive_cache(sha, ref) @@ -68,7 +68,7 @@ class DroneCiService < CiService end { commit_status: status } - rescue Errno::ECONNREFUSED + rescue *Gitlab::HTTP::HTTP_ERRORS { commit_status: :error } end |