mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
add missing error
This commit is contained in:
parent
c58709c1a3
commit
b1db2bba12
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue