From 4e10361d3a43fb33357b426505dda4c61ecc5296 Mon Sep 17 00:00:00 2001 From: Muhammad Hewedy Date: Fri, 11 Dec 2020 18:28:28 +0300 Subject: [PATCH] update error msg for create command --- command/create.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/command/create.go b/command/create.go index 54117b2..154d5ec 100644 --- a/command/create.go +++ b/command/create.go @@ -67,7 +67,9 @@ $ vermin create }, Args: func(cmd *cobra.Command, args []string) error { if len(args) < 1 { - return errors.New("Image required\nUse the command 'vermin images' to list all images available") + return errors.New("Image required. " + + "try \"vermin create ubuntu/focal64\".\n" + + "Use the command 'vermin images' to list all images available") } parts := strings.Split(args[0], "/")