systemctl: print a more accurate error message when we can

This commit is contained in:
Lennart Poettering
2019-04-02 05:44:12 +09:00
committed by Yu Watanabe
parent c2f64c07c1
commit d2e1b2fd67
+1 -1
View 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;