1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

systemctl: improve error message when starting a unit failed

Fixes #2798
This commit is contained in:
Ronny Chevalier 2016-03-05 12:47:21 +01:00
parent 9f0cd100d0
commit 0b8505b7c9

View File

@ -2596,7 +2596,10 @@ static int start_unit_one(
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);
log_error("See %s logs and 'systemctl%s status %s' for details.",
arg_scope == UNIT_FILE_SYSTEM ? "system" : "user",
arg_scope == UNIT_FILE_SYSTEM ? "" : " --user",
name);
return r;
}