Commit ca58a3ff authored by Kerri Miller's avatar Kerri Miller

Merge branch '342973_dont_send_parsing_errors_to_sentry' into 'master'

Do not send parsing errors to Sentry as they are not exceptions

See merge request gitlab-org/gitlab!74085
parents e5d77748 243602b9
...@@ -33,8 +33,7 @@ module Gitlab ...@@ -33,8 +33,7 @@ module Gitlab
report_data report_data
rescue JSON::ParserError rescue JSON::ParserError
raise SecurityReportParserError, 'JSON parsing failed' raise SecurityReportParserError, 'JSON parsing failed'
rescue StandardError => e rescue StandardError
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(e)
raise SecurityReportParserError, "#{report.type} security report parsing failed" raise SecurityReportParserError, "#{report.type} security report parsing failed"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment