diff options
author | Franck Bui <fbui@suse.com> | 2015-12-02 17:03:28 +0100 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2015-12-02 17:03:28 +0100 |
commit | ee87525c5eeacf3ce8fb730bcd3658e8da085046 (patch) | |
tree | e138db51f3346f86a0107d50d91602eea4776a56 /src/systemctl | |
parent | bca27e1729b496081b0fa4e2754f5fcdcc0efce5 (diff) | |
download | systemd-ee87525c5eeacf3ce8fb730bcd3658e8da085046.tar.gz |
core: use bus_unit_check_load_state() in transaction_add_job_and_dependencies()
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 1448d974bd..b88009c044 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2631,7 +2631,13 @@ static int start_unit_one( verb = method_to_verb(method); - return log_error_errno(r, "Failed to %s %s: %s", verb, name, bus_error_message(error, r)); + 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)) + log_error("See system logs and 'systemctl status %s' for details.", name); + + return r; } r = sd_bus_message_read(reply, "o", &path); |