Error is already wrapped properly.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #517
Approved by: baude
This commit is contained in:
Daniel J Walsh
2018-03-20 06:09:40 -04:00
committed by Atomic Bot
parent c54816dfc3
commit 471409a5cf

View File

@ -61,7 +61,7 @@ func (r *Runtime) NewContainer(rSpec *spec.Spec, options ...CtrCreateOption) (c
// Set up storage for the container
if err := ctr.setupStorage(); err != nil {
return nil, errors.Wrapf(err, "error configuring storage for container")
return nil, err
}
defer func() {
if err != nil {