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
report_data
rescue JSON::ParserError
raise SecurityReportParserError, 'JSON parsing failed'
rescue StandardError => e
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(e)
rescue StandardError
raise SecurityReportParserError, "#{report.type} security report parsing failed"
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