mirror of
https://github.com/vishvananda/netns
synced 2025-02-16 19:46:49 +00:00
fixed swallowed err variable
This commit is contained in:
parent
54f0e4339c
commit
86bef332bf
@ -138,7 +138,9 @@ func getThisCgroup(cgroupType string) (string, error) {
|
||||
return "", fmt.Errorf("docker pid not found in /var/run/docker.pid")
|
||||
}
|
||||
pid, err := strconv.Atoi(result[0])
|
||||
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
output, err := ioutil.ReadFile(fmt.Sprintf("/proc/%d/cgroup", pid))
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
Loading…
Reference in New Issue
Block a user