summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_commit.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpod/container_commit.go b/libpod/container_commit.go
index de659c982..93ad4006e 100644
--- a/libpod/container_commit.go
+++ b/libpod/container_commit.go
@@ -161,7 +161,10 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
importBuilder.SetWorkDir(splitChange[1])
}
}
- candidates := util.ResolveName(destImage, "", sc, c.runtime.store)
+ candidates, err := util.ResolveName(destImage, "", sc, c.runtime.store)
+ if err != nil {
+ return nil, errors.Wrapf(err, "error resolving name %q", destImage)
+ }
if len(candidates) == 0 {
return nil, errors.Errorf("error parsing target image name %q", destImage)
}