rescue all email smtp errors
This commit is contained in:
@@ -13,7 +13,7 @@ class EmailSettingsController < ApplicationController
|
|||||||
else
|
else
|
||||||
render :index, status: :unprocessable_entity
|
render :index, status: :unprocessable_entity
|
||||||
end
|
end
|
||||||
rescue Net::SMTPError, OpenSSL::SSL::SSLError, Net::ReadTimeout => e
|
rescue StandardError => e
|
||||||
flash[:alert] = e.message
|
flash[:alert] = e.message
|
||||||
|
|
||||||
render :index, status: :unprocessable_entity
|
render :index, status: :unprocessable_entity
|
||||||
|
|||||||
Reference in New Issue
Block a user