diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-23 10:22:44 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-23 11:13:42 +0100 |
commit | 5b464a18e78bcbb2cd00ce662e2c08d8a2dfde59 (patch) | |
tree | 2b9249d0246581331fffb8d70181867f1637e6aa | |
parent | basic/log: make sure header is printed correctly, add test (diff) | |
download | systemd-5b464a18e78bcbb2cd00ce662e2c08d8a2dfde59.tar.xz systemd-5b464a18e78bcbb2cd00ce662e2c08d8a2dfde59.zip |
systemctl: do not hint logs when a unit cannot be reloaded
The logs don't contain any additional information.
-rw-r--r-- | src/systemctl/systemctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 6eec0171c6..e47c3dd2e9 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2942,7 +2942,8 @@ static int start_unit_one( log_error("Failed to %s %s: %s", verb, name, bus_error_message(error, r)); if (!sd_bus_error_has_name(error, BUS_ERROR_NO_SUCH_UNIT) && - !sd_bus_error_has_name(error, BUS_ERROR_UNIT_MASKED)) + !sd_bus_error_has_name(error, BUS_ERROR_UNIT_MASKED) && + !sd_bus_error_has_name(error, BUS_ERROR_JOB_TYPE_NOT_APPLICABLE)) log_error("See %s logs and 'systemctl%s status%s %s' for details.", arg_scope == UNIT_FILE_SYSTEM ? "system" : "user", arg_scope == UNIT_FILE_SYSTEM ? "" : " --user", |