From: Zbigniew Jędrzejewski-Szmek Date: Thu, 31 Jul 2014 07:42:19 +0000 (-0400) Subject: systemd-analyze verify: improve error message X-Git-Tag: v216~348 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d8aa69b9c89b1309041ca3dc1c5a050fefab64ae systemd-analyze verify: improve error message There's little sense in telling the user to look at the logs... --- diff --git a/src/core/transaction.c b/src/core/transaction.c index 805d40ae6..1f4c9ce41 100644 --- a/src/core/transaction.c +++ b/src/core/transaction.c @@ -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,