Update error string when failing to send alert
Wrap both originating errors
This commit is contained in:
parent
41a1dbeceb
commit
37db4b2db0
2
alert.go
2
alert.go
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user