We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c973d7 + 9ff4a00 commit 03e5862Copy full SHA for 03e5862
runtime/container.go
@@ -251,7 +251,7 @@ func (c *container) readSpec() (*specs.Spec, error) {
251
func (c *container) Delete() error {
252
var err error
253
args := append(c.runtimeArgs, "delete", c.id)
254
- if b, derr := exec.Command(c.runtime, args...).CombinedOutput(); err != nil {
+ if b, derr := exec.Command(c.runtime, args...).CombinedOutput(); derr != nil {
255
err = fmt.Errorf("%s: %q", derr, string(b))
256
}
257
if rerr := os.RemoveAll(filepath.Join(c.root, c.id)); rerr != nil {
0 commit comments