Commit 243602b9 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

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

parent ef6ded68
......@@ -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