[systemd-commits] src/manager.c TODO

Lennart Poettering lennart at kemper.freedesktop.org
Mon Jun 20 12:39:36 PDT 2011


 TODO          |    2 ++
 src/manager.c |    5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

New commits:
commit 3661ac04b4f2840d3345605aa35963bbde3c469d
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Jun 20 21:39:28 2011 +0200

    manager: include full systemctl status command line in error message

diff --git a/TODO b/TODO
index a029ddb..8e43b38 100644
--- a/TODO
+++ b/TODO
@@ -80,6 +80,8 @@ Features:
 
 * In systemctl make sure both is-enabled and is-active print a string, or neither.
 
+* teach systemctl to enable unit files in arbitrary directories
+
 * when failing to start a service due to ratelimiting, try again later, if restart=always is set
 
 * write blog stories about:
diff --git a/src/manager.c b/src/manager.c
index 68d43ad..62451a0 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;
         }
 



More information about the systemd-commits mailing list