Fix rescue in Admin::MailDeliveryStatusController#destroy
This commit is contained in:
parent
1d9856ff93
commit
eb8241cf04
1 changed files with 1 additions and 1 deletions
|
@ -25,6 +25,6 @@ class Admin::MailDeliveryStatusController < Admin::BaseController
|
|||
@maildeliverystatus.destroy
|
||||
redirect_to admin_mail_delivery_status_index_path, notice: t('.notice')
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue