5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-15 04:01:43 +00:00

excepciones con contexto

closes #255
closes #256
closes #257
closes #258
closes #259
This commit is contained in:
f 2021-02-11 11:26:17 -03:00
parent 77e71f6a66
commit 3b015e0c22
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ class MaintenanceJob < ApplicationJob
rescue Net::SMTPServerBusy => e
# Algunas direcciones no son válidas, no queremos detener el
# envío pero sí enterarnos cuáles son
ExceptionNotifier.notify_exception e
ExceptionNotifier.notify_exception(e, data: { maintenance_id: maintenance_id, email: u[0]) })
end
end
end

View file

@ -172,7 +172,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type,
box.decrypt_str value.to_s
rescue Lockbox::DecryptionError => e
ExceptionNotifier.notify_exception(e)
ExceptionNotifier.notify_exception(e, data: { site: site.name, post: post.path.absolute, name: name })
I18n.t('lockbox.help.decryption_error')
end