diff --git a/app/models/utils/xml_packager.rb b/app/models/utils/xml_packager.rb index b1054c3568..05f4e6f755 100644 --- a/app/models/utils/xml_packager.rb +++ b/app/models/utils/xml_packager.rb @@ -47,7 +47,7 @@ def zip(zipfile_name, download_scope) next unless response.odk_xml.present? zip_xml(zipfile, response) rescue Zip::EntryExistsError => e - report_error(e) + report_error(e, response) next end end @@ -62,9 +62,9 @@ def zip_xml(zipfile, response) zipfile.add(zip_entry, xml_filepath) end - def report_error(error) + def report_error(error, response) Sentry.add_breadcrumb(Sentry::Breadcrumb.new( - message: "Mission: #{@operation.mission.compact_name}. Response ID: #{rid}" + message: "Mission: #{@operation.mission.compact_name}. Response ID: #{response.id}" )) notify_admins(error) end