]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemctl: print a more accurate error message when we can
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Mar 2019 19:23:16 +0000 (20:23 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 1 Apr 2019 20:44:12 +0000 (05:44 +0900)
src/systemctl/systemctl.c

index 2f3efd23c441ab06676030d40917451921e9ffe1..92bbcfd2765dec50e9b6c166befa597791a19c2b 100644 (file)
@@ -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;