summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-20 21:39:28 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-20 21:39:28 +0200
commit3661ac04b4f2840d3345605aa35963bbde3c469d (patch)
treefc8083b04f2d585a76d7280370ef9f76f17b9edc /src/manager.c
parentabebb5af9a7f5da77425aab1ecadd9bfcad53009 (diff)
manager: include full systemctl status command line in error message
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/manager.c b/src/manager.c
index 68d43ada44..62451a0d9e 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -1468,9 +1468,10 @@ static int transaction_add_job_and_dependencies(
if (type != JOB_STOP && unit->meta.load_state == UNIT_ERROR) {
dbus_set_error(e, BUS_ERROR_LOAD_FAILED,
"Unit %s failed to load: %s. "
- "See system logs and 'systemctl status' for details.",
+ "See system logs and 'systemctl status %s' for details.",
unit->meta.id,
- strerror(-unit->meta.load_error));
+ strerror(-unit->meta.load_error),
+ unit->meta.id);
return -EINVAL;
}