mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03: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…
x
Reference in New Issue
Block a user