From: Lennart Poettering Date: Fri, 29 Mar 2019 19:23:16 +0000 (+0100) Subject: systemctl: print a more accurate error message when we can X-Git-Tag: v242-rc1~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2e1b2fd67d44830417b64d26f2945d752b75d9e;p=thirdparty%2Fsystemd.git systemctl: print a more accurate error message when we can --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 2f3efd23c44..92bbcfd2765 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;