chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e830df
)
systemctl: improve message when a job fails with a JOB_INVALID state
author
Lennart Poettering
<lennart@poettering.net>
Thu, 28 Jan 2016 17:53:34 +0000
(18:53 +0100)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/src/shared/bus-util.c
b/src/shared/bus-util.c
index a2912174804342d681d1883a63d038a02fcea55a..c12795d1f397402611d3f21e66326140db3dc992 100644
(file)
--- a/
src/shared/bus-util.c
+++ b/
src/shared/bus-util.c
@@
-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 invali
d.", strna(d->name));
+ log_error("
%s is not active, cannot reloa
d.", 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"))