mirror of
https://github.com/systemd/systemd
synced 2024-10-07 00:30:59 +00:00
systemd-analyze verify: improve error message
There's little sense in telling the user to look at the logs...
This commit is contained in:
parent
1e2fd62d70
commit
d8aa69b9c8
|
@ -870,7 +870,7 @@ int transaction_add_job_and_dependencies(
|
|||
}
|
||||
|
||||
if (type != JOB_STOP && unit->load_state == UNIT_ERROR) {
|
||||
if (unit->load_error == -ENOENT)
|
||||
if (unit->load_error == -ENOENT || unit->manager->test_run)
|
||||
sd_bus_error_setf(e, BUS_ERROR_LOAD_FAILED,
|
||||
"Unit %s failed to load: %s.",
|
||||
unit->id,
|
||||
|
|
Loading…
Reference in a new issue