From 195a97ce1c22ce3c726dcfa0e026d290d8ad7e8e Mon Sep 17 00:00:00 2001 From: Denis-Kuso Date: Thu, 19 Dec 2024 14:59:42 +0000 Subject: [PATCH] [BUGFIX] replace return of wrong error variable 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