send full messages to sentry

This commit is contained in:
simon lehericey 2024-11-06 10:52:23 +01:00
parent a4bd2aac0e
commit f942675782
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -32,7 +32,7 @@ class AssignTo < ApplicationRecord
if errors.present?
Sentry.capture_message(
"Destroying invalid ProcedurePresentation",
extra: { procedure_presentation_id: procedure_presentation.id, errors: }
extra: { procedure_presentation_id: procedure_presentation.id, errors: errors.full_messages }
)
self.procedure_presentation = nil
end