Update error string when failing to send alert
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

Wrap both originating errors
This commit is contained in:
IamTheFij 2023-08-10 16:23:02 -04:00
parent 41a1dbeceb
commit 37db4b2db0

View File

@ -168,7 +168,7 @@ func (alert Alert) Send(notice AlertNotice) (outputStr string, err error) {
if err != nil {
err = fmt.Errorf(
"Alert '%s' failed to send. Returned %v: %w",
"Alert %s failed to send. Returned %w: %w",
alert.Name,
err,
ErrAlertFailed,