systemd-analyze verify: improve error message

There's little sense in telling the user to look at the logs...
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-07-31 03:42:19 -04:00
parent 1e2fd62d70
commit d8aa69b9c8
1 changed files with 1 additions and 1 deletions

View File

@ -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,