1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

systemctl: print a more accurate error message when we can

This commit is contained in:
Lennart Poettering 2019-03-29 20:23:16 +01:00 committed by Yu Watanabe
parent c2f64c07c1
commit d2e1b2fd67

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;