cgls: add a better error message for missing cgroupfs
This commit is contained in:
parent
3a89c3a0fc
commit
e97a84757f
|
@ -131,7 +131,9 @@ static int get_cgroup_root(char **ret) {
|
|||
|
||||
if (!arg_machine) {
|
||||
r = cg_get_root_path(ret);
|
||||
if (r < 0)
|
||||
if (r == -ENOEXEC)
|
||||
return log_error_errno(r, "Failed to get root control group path: No cgroup filesystem mounted on /sys/fs/cgroup");
|
||||
else if (r < 0)
|
||||
return log_error_errno(r, "Failed to get root control group path: %m");
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue