From 1735598d12dfc6965c1881d537c6c0051a3637dd Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 17 Jan 2018 09:26:50 -0500 Subject: Add check for successful imageData call Signed-off-by: Daniel J Walsh Closes: #234 Approved by: baude --- cmd/podman/run.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman/run.go') diff --git a/cmd/podman/run.go b/cmd/podman/run.go index eecfe87b3..97f60cdbf 100644 --- a/cmd/podman/run.go +++ b/cmd/podman/run.go @@ -46,6 +46,10 @@ func runCmd(c *cli.Context) error { } imageName, _, data, err := imageData(c, runtime, c.Args()[0]) + if err != nil { + return err + } + createConfig, err := parseCreateOpts(c, runtime, imageName, data) if err != nil { return err -- cgit v1.2.3-54-g00ecf