]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/dbus-manager: be explicit that job enqueue errors are from EnqueueMarkedJobs...
authorMike Yuan <me@yhndnzj.com>
Fri, 16 Jan 2026 19:21:22 +0000 (20:21 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 17 Jan 2026 14:00:10 +0000 (15:00 +0100)
Follow-up for 502d6f4bc9b96009627f923dcc0ab53e5a181d78

src/core/dbus-manager.c

index 5bd52edc34105ffa537b3c89dd137bef0bcf3a5c..232389e06cae4201ebf9beaab55d9b9fc5d569ab 100644 (file)
@@ -2146,10 +2146,9 @@ static int method_enqueue_marked_jobs(sd_bus_message *message, void *userdata, s
                                                    reply, &error);
                 if (ERRNO_IS_NEG_RESOURCE(r))
                         return r;
-                if (r < 0) {
-                        RET_GATHER(ret, r);
-                        log_warning_errno(r, "%s", bus_error_message(&error, r));
-                }
+                if (r < 0)
+                        RET_GATHER(ret, log_unit_warning_errno(u, r, "Failed to enqueue marked job: %s",
+                                                               bus_error_message(&error, r)));
         }
 
         if (ret < 0)