diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 09:08:59 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-19 09:08:59 +0000 |
commit | c1fc5da123a1fe670e32740669a9d5e59eff38f5 (patch) | |
tree | 9e872d4057232aed3e5e0304cdfa04db74ba8464 /lib/gitlab/jira | |
parent | 82a708b9f0adca259062555d16a9720f9955993b (diff) | |
download | gitlab-ce-c1fc5da123a1fe670e32740669a9d5e59eff38f5.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/jira')
-rw-r--r-- | lib/gitlab/jira/http_client.rb | 7 |
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 |