diff options
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 |