From d2e1b2fd67d44830417b64d26f2945d752b75d9e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 29 Mar 2019 20:23:16 +0100 Subject: [PATCH] systemctl: print a more accurate error message when we can --- src/systemctl/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 2f3efd23c4..92bbcfd276 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -3042,7 +3042,7 @@ static int start_unit_one( log_debug("Adding %s to the set", path); r = bus_wait_for_jobs_add(w, path); if (r < 0) - return log_oom(); + return log_error_errno(r, "Failed to watch job for %s: %m", name); } return 0;