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
1 changed files with 1 additions and 1 deletions

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;