Skip to content

Commit

Permalink
update error msg for create command
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed Dec 11, 2020
1 parent 9168aa1 commit 4e10361
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion command/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ $ vermin create <image> </path/to/shell/script.sh>
},
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], "/")
Expand Down

0 comments on commit 4e10361

Please sign in to comment.