Commit 3ea74509 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'rescue-report-all-ar-errors-in-store-reports-service' into 'master'

fix: Track and raise StoreReportService on all AR errors

See merge request gitlab-org/gitlab!55562
parents bc213098 955d027e
......@@ -107,7 +107,7 @@ module Security
return by_find_params if by_find_params
Gitlab::ErrorTracking.track_and_raise_exception(e, find_params: find_params, uuid: finding.uuid)
rescue ActiveRecord::RecordInvalid => e
rescue ActiveRecord::ActiveRecordError => e
Gitlab::ErrorTracking.track_and_raise_exception(e, create_params: create_params&.dig(:raw_metadata))
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