Update error string when failing to send alert

Wrap both originating errors
This commit is contained in:
Ian Fijolek
2023-08-10 16:23:02 -04:00
parent 41a1dbeceb
commit 37db4b2db0
+1 -1
View File
@@ -168,7 +168,7 @@ func (alert Alert) Send(notice AlertNotice) (outputStr string, err error) {
if err != nil { if err != nil {
err = fmt.Errorf( err = fmt.Errorf(
"Alert '%s' failed to send. Returned %v: %w", "Alert %s failed to send. Returned %w: %w",
alert.Name, alert.Name,
err, err,
ErrAlertFailed, ErrAlertFailed,