mirror of
https://github.com/systemd/systemd.git
synced 2025-01-27 18:04:05 +03:00
systemctl: print a more accurate error message when we can
This commit is contained in:
parent
c2f64c07c1
commit
d2e1b2fd67
@ -3042,7 +3042,7 @@ static int start_unit_one(
|
|||||||
log_debug("Adding %s to the set", path);
|
log_debug("Adding %s to the set", path);
|
||||||
r = bus_wait_for_jobs_add(w, path);
|
r = bus_wait_for_jobs_add(w, path);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_oom();
|
return log_error_errno(r, "Failed to watch job for %s: %m", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user