projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0cd10
)
systemctl: improve error message when starting a unit failed
author
Ronny Chevalier
<chevalier.ronny@gmail.com>
Sat, 5 Mar 2016 11:47:21 +0000
(12:47 +0100)
committer
Ronny Chevalier
<chevalier.ronny@gmail.com>
Sat, 5 Mar 2016 11:47:21 +0000
(12:47 +0100)
Fixes #2798
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index a62f4bf2f5fc6bc630922e5d08671059b651e4df..19d4e2c6e5ff878cc7f58ce9b8f3ac3dbc13113a 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-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;
}