Fix rescue in Admin::MailDeliveryStatusController#destroy

This commit is contained in:
Patrick Gansterer 2019-11-11 11:11:33 +01:00
parent 1d9856ff93
commit eb8241cf04

View file

@ -25,6 +25,6 @@ class Admin::MailDeliveryStatusController < Admin::BaseController
@maildeliverystatus.destroy @maildeliverystatus.destroy
redirect_to admin_mail_delivery_status_index_path, notice: t('.notice') redirect_to admin_mail_delivery_status_index_path, notice: t('.notice')
rescue => error rescue => error
redirect_to admin_mail_delivery_status_index_path, I18n.t('errors.general_msg', msg: error.message) redirect_to admin_mail_delivery_status_index_path, alert: I18n.t('errors.general_msg', msg: error.message)
end end
end end