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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-19 12:08:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-19 12:08:59 +0300
commitc1fc5da123a1fe670e32740669a9d5e59eff38f5 (patch)
tree9e872d4057232aed3e5e0304cdfa04db74ba8464 /lib/gitlab/jira
parent82a708b9f0adca259062555d16a9720f9955993b (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/jira')
-rw-r--r--lib/gitlab/jira/http_client.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab/jira/http_client.rb b/lib/gitlab/jira/http_client.rb
index c09d8170d17..2479b9089c2 100644
--- a/lib/gitlab/jira/http_client.rb
+++ b/lib/gitlab/jira/http_client.rb
@@ -12,7 +12,12 @@ module Gitlab
def request(*args)
result = make_request(*args)
- raise JIRA::HTTPError.new(result.response) unless result.response.is_a?(Net::HTTPSuccess)
+ unless result.response.is_a?(Net::HTTPSuccess)
+ Gitlab::ErrorTracking.track_and_raise_exception(
+ JIRA::HTTPError.new(result.response),
+ response_body: result.body
+ )
+ end
result
end