boulder/mail
Roland Bracewell Shoemaker 5d6196e228
Fix mailer error bug (#4042)
This fixes two bugs:
1. `resetAndError` would be called on every error, including `io.EOF`, which is returned when the connection is terminated. Calling `m.client.Reset()` after a `io.EOF` will result in another error, causing us to wrap the `io.EOF` with a `errors.errorString`. This broke a check in `sendMail` that was used to cause a reconnect.
2. There was a error type cast that assumed the type without checking it, which could result in a panic when an error of the unexpected type was returned.
2019-02-07 20:25:08 -08:00
..
mailer.go Fix mailer error bug (#4042) 2019-02-07 20:25:08 -08:00
mailer_test.go Fix mailer error bug (#4042) 2019-02-07 20:25:08 -08:00