chiark / gitweb /
systemctl: improve message when a job fails with a JOB_INVALID state
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Jan 2016 17:53:34 +0000 (18:53 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
This result can only happen if the job was a reload job for an inactive unit. Make the error message actually say that.

src/shared/bus-util.c

index a2912174804342d681d1883a63d038a02fcea55a..c12795d1f397402611d3f21e66326140db3dc992 100644 (file)
@@ -2097,7 +2097,7 @@ static int check_wait_response(BusWaitForJobs *d, bool quiet, const char *extra_
                 else if (streq(d->result, "dependency"))
                         log_error("A dependency job for %s failed. See 'journalctl -xe' for details.", strna(d->name));
                 else if (streq(d->result, "invalid"))
-                        log_error("Job for %s invalid.", strna(d->name));
+                        log_error("%s is not active, cannot reload.", strna(d->name));
                 else if (streq(d->result, "assert"))
                         log_error("Assertion failed on job for %s.", strna(d->name));
                 else if (streq(d->result, "unsupported"))