mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 00:37:22 +08:00
Adds rescue block to catch all Net::SMTPError subclasses during email delivery and log detailed error information for debugging purposes. The error is re-raised to maintain existing retry behavior. This provides visibility into all SMTP errors that aren't already handled by the skip logic, including authentication failures, server busy errors, and unknown responses. Existing skip behavior for fatal and syntax errors is preserved. Log output includes the specific error class (e.g. Net::SMTPUnknownError, Net::SMTPAuthenticationError) and server response data when available. Includes test coverage for error logging with and without server response data. |
||
|---|---|---|
| .. | ||
| authentication_results_spec.rb | ||
| cleaner_spec.rb | ||
| email_spec.rb | ||
| message_builder_spec.rb | ||
| processor_spec.rb | ||
| receiver_spec.rb | ||
| renderer_spec.rb | ||
| sender_spec.rb | ||
| styles_spec.rb | ||