From 36853a6cf2b61602c1d8d514a32e0c622bef70f7 Mon Sep 17 00:00:00 2001 From: rainzm Date: Thu, 14 Jan 2021 14:19:09 +0800 Subject: [PATCH] fix(notify): panic for err --- pkg/notify/tasks/notifications_send_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/notify/tasks/notifications_send_task.go b/pkg/notify/tasks/notifications_send_task.go index a9d05bf017..a94175be46 100644 --- a/pkg/notify/tasks/notifications_send_task.go +++ b/pkg/notify/tasks/notifications_send_task.go @@ -175,7 +175,7 @@ func (self *NotificationSendTask) OnInit(ctx context.Context, obj db.IStandalone // check result for _, fd := range fds { rn := contactMap[fd.Contact] - sendFail(rn, err.Error()) + sendFail(rn, fd.Reason) delete(contactMap, fd.Contact) } // after send for successful notify