Add error return for missing params in ctr images
For missing required parameters adds error return before attempting any actions to `ctr images` commands. Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
This commit is contained in:
@@ -27,7 +27,9 @@ command. As part of this process, we do the following:
|
||||
var (
|
||||
ref = context.Args().First()
|
||||
)
|
||||
|
||||
if ref == "" {
|
||||
return fmt.Errorf("please provide an image reference to pull")
|
||||
}
|
||||
ctx, cancel := commands.AppContext(context)
|
||||
defer cancel()
|
||||
|
||||
|
Reference in New Issue
Block a user