##// END OF EJS Templates
prevent "can't modify frozen String" exception when mail sending error (#17235)...
Toshi MARUYAMA -
r12923:cb7b57815e3a
parent child
Show More
@@ -65,7 +65,7 class AdminController < ApplicationController
65 65 @test = Mailer.test_email(User.current).deliver
66 66 flash[:notice] = l(:notice_email_sent, User.current.mail)
67 67 rescue Exception => e
68 flash[:error] = l(:notice_email_error, Redmine::CodesetUtil.replace_invalid_utf8(e.message))
68 flash[:error] = l(:notice_email_error, Redmine::CodesetUtil.replace_invalid_utf8(e.message.dup))
69 69 end
70 70 ActionMailer::Base.raise_delivery_errors = raise_delivery_errors
71 71 redirect_to settings_path(:tab => 'notifications')
General Comments 0
You need to be logged in to leave comments. Login now