Skip to content

Commit

Permalink
notifier: log failed delivery reason
Browse files Browse the repository at this point in the history
update ErrFailedDelivery to have its error method also print the
wrapped error's message.

Signed-off-by: ldelossa <ldelossa@redhat.com>
  • Loading branch information
ldelossa authored and ldelossa committed Nov 17, 2020
1 parent bb3cd66 commit 77ca653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clair-error/notifications.go
Expand Up @@ -117,7 +117,7 @@ type ErrDeliveryFailed struct {
}

func (e ErrDeliveryFailed) Error() string {
return "failed to deliver notification"
return "failed to deliver notification: " + e.E.Error()
}

func (e ErrDeliveryFailed) Unwrap() error {
Expand Down

0 comments on commit 77ca653

Please sign in to comment.