summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-31 03:42:19 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-31 08:56:03 -0400
commitd8aa69b9c89b1309041ca3dc1c5a050fefab64ae (patch)
tree2663412b0976981d0f00680096775902c7f57b9d /src/core
parent1e2fd62d70ff1a960551d28fce745847a9dbd3b7 (diff)
systemd-analyze verify: improve error message
There's little sense in telling the user to look at the logs...
Diffstat (limited to 'src/core')
-rw-r--r--src/core/transaction.c2
1 files changed, 1 insertions, 1 deletions
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,