diff --git a/virtcontainers/container.go b/virtcontainers/container.go index c53f5ee47..c7da8abfd 100644 --- a/virtcontainers/container.go +++ b/virtcontainers/container.go @@ -1498,7 +1498,7 @@ func (c *Container) cgroupsDelete() error { } if err := cgroup.Delete(); err != nil { - return fmt.Errorf("Could not delete container cgroup %v: %v", c.state.CgroupPath, err) + return fmt.Errorf("Could not delete container cgroup path='%v': error='%v'", c.state.CgroupPath, err) } return nil @@ -1519,7 +1519,7 @@ func (c *Container) cgroupsUpdate(resources specs.LinuxResources) error { // update cgroup if err := cgroup.Update(&r); err != nil { - return fmt.Errorf("Could not update cgroup %v: %v", c.state.CgroupPath, err) + return fmt.Errorf("Could not update container cgroup path='%v': error='%v'", c.state.CgroupPath, err) } // store new resources diff --git a/virtcontainers/sandbox.go b/virtcontainers/sandbox.go index 5319a47aa..a749f9ece 100644 --- a/virtcontainers/sandbox.go +++ b/virtcontainers/sandbox.go @@ -1902,7 +1902,7 @@ func (s *Sandbox) cgroupsUpdate() error { } if err := cgroup.Update(&resources); err != nil { - return fmt.Errorf("Could not update cgroup %v: %v", s.state.CgroupPath, err) + return fmt.Errorf("Could not update sandbox cgroup path='%v' error='%v'", s.state.CgroupPath, err) } return nil