From d8aa69b9c89b1309041ca3dc1c5a050fefab64ae Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Thu, 31 Jul 2014 03:42:19 -0400 Subject: systemd-analyze verify: improve error message There's little sense in telling the user to look at the logs... --- src/core/transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/transaction.c b/src/core/transaction.c index 805d40ae6a..1f4c9ce416 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, -- cgit v1.2.3-54-g00ecf