Merge pull request #5044 from wzshiming/fix/empty-error-warpping
Fix empty error warpping
This commit is contained in:
commit
746cef0bc2
@ -227,7 +227,7 @@ func (c *criService) CreateContainer(ctx context.Context, r *runtime.CreateConta
|
|||||||
|
|
||||||
specOpts, err := c.containerSpecOpts(config, &image.ImageSpec.Config)
|
specOpts, err := c.containerSpecOpts(config, &image.ImageSpec.Config)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, errors.Wrap(err, "")
|
return nil, errors.Wrap(err, "failed to get container spec opts")
|
||||||
}
|
}
|
||||||
|
|
||||||
containerLabels := buildLabels(config.Labels, containerKindContainer)
|
containerLabels := buildLabels(config.Labels, containerKindContainer)
|
||||||
|
Loading…
Reference in New Issue
Block a user