mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-19 12:17:03 +00:00
- `tmplText` and `tmplHTML` are using a monad-style error handling [1]. This reduces the verbosity of the error logic, but introduces the risk of forgetting the final error check. This patch does not remove this coding-style, but ensures proper error checking in the Email and PagerDuty notifier. - Ensure to handle errors returned by `multipartWriter.Close()` and `wc.Write(buffer.Bytes())` in `Email.Notify()`. [1] https://www.innoq.com/en/blog/golang-errors-monads/ Signed-off-by: Max Leonard Inden <IndenML@gmail.com> |
||
---|---|---|
.. | ||
impl_test.go | ||
impl.go | ||
notify_test.go | ||
notify.go |