diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils_supported.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/utils_supported.go b/utils/utils_supported.go index 885112efb..bcaa2c61a 100644 --- a/utils/utils_supported.go +++ b/utils/utils_supported.go @@ -56,7 +56,7 @@ func RunUnderSystemdScope(pid int, slice string, unitName string) error { func getCgroupProcess(procFile string) (string, error) { f, err := os.Open(procFile) if err != nil { - return "", errors.Wrapf(err, "open file %q", procFile) + return "", err } defer f.Close() @@ -104,7 +104,7 @@ func MoveUnderCgroupSubtree(subtree string) error { procFile := "/proc/self/cgroup" f, err := os.Open(procFile) if err != nil { - return errors.Wrapf(err, "open file %q", procFile) + return err } defer f.Close() |