From 05a6743e74ba616d0d68a98a7f0cf758cd86b715 Mon Sep 17 00:00:00 2001 From: Denis-Kuso <64014988+Denis-Kuso@users.noreply.github.com> Date: Mon, 23 Dec 2024 18:40:29 +0000 Subject: [PATCH] [BUGFIX] replace return of wrong error variable (#3015) This fixes the issue #3012 where the error returned by the `Notify()` call would incorrectly return a nil value (from `dbus.SessionBus()`), instead of the correct non-nil value (from `call.Err`). Signed-off-by: Denis-Kuso --- internal/notify/notify_dbus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/notify/notify_dbus.go b/internal/notify/notify_dbus.go index c587862e26..9801424b28 100644 --- a/internal/notify/notify_dbus.go +++ b/internal/notify/notify_dbus.go @@ -31,7 +31,7 @@ func Notify(ctx context.Context, subj, msg string) error { if call.Err != nil { debug.Log("DBus notification failure: %s", call.Err) - return err + return call.Err } return nil