Skip to content

Commit 0962508

Browse files
committed
Improve returned error text at CreateContainer failure
Signed-off-by: Snir Schreiber <[email protected]>
1 parent 14e7ced commit 0962508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/oci/runtime_vm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func (r *runtimeVM) CreateContainer(ctx context.Context, c *Container, cgroupPar
233233
}
234234
case <-time.After(ContainerCreateTimeout):
235235
if err := r.remove(c.ID(), ""); err != nil {
236-
return err
236+
return fmt.Errorf("failed to cleanup container after creation timeout (%v): %w", timeout, err)
237237
}
238238

239239
<-createdCh

0 commit comments

Comments
 (0)