From b1db2bba12780265408b5c041d648959f0042953 Mon Sep 17 00:00:00 2001 From: popaprozac Date: Thu, 20 Mar 2025 10:59:12 -0700 Subject: [PATCH] add missing error --- v3/pkg/services/notifications/notifications_windows.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/v3/pkg/services/notifications/notifications_windows.go b/v3/pkg/services/notifications/notifications_windows.go index e63850cd1..020637f87 100644 --- a/v3/pkg/services/notifications/notifications_windows.go +++ b/v3/pkg/services/notifications/notifications_windows.go @@ -197,7 +197,11 @@ func (ns *Service) SendNotificationWithActions(options NotificationOptions) erro } if options.Data != nil { - n.ActivationArguments, _ = encodePayload(n.ActivationArguments, options.Data) + encodedPayload, err := encodePayload(n.ActivationArguments, options.Data) + if err != nil { + return fmt.Errorf("failed to encode notification data: %w", err) + } + n.ActivationArguments = encodedPayload for index := range n.Actions { encodedPayload, err := encodePayload(n.Actions[index].Arguments, options.Data)