mirror of
https://github.com/docusealco/docuseal
synced 2026-11-12 07:42:32 -05:00
rescue all email smtp errors
This commit is contained in:
1 parent
130c91178f
commit
545b18086a
1 file changed
+1
-1
@@ -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