Errno::EHOSTUNREACH in UsersController#create
No route to host - connect(2)
Run Code Online (Sandbox Code Playgroud)
使用Rails应用程序发送邮件时出现此错误.
建立在joeshmo的答案上:
begin
# problematic code
rescue Errno::EHOSTUNREACH
# log the error
# let the User know
rescue
# handle other exceptions
end
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23081 次 |
| 最近记录: |