chiark / gitweb /
manager: include full systemctl status command line in error message
[elogind.git] / src / manager.c
index 68d43ada44f61fa6dc75091bca65703e85dba319..62451a0d9ea4b3a11e08ee9144e368c7abbf1a56 100644 (file)
@@ -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;
         }