fix: better error

This commit is contained in:
2022-01-01 21:46:24 +01:00
parent 49f565e5db
commit 3119220c21
2 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ func ValidateRecipe(c *cli.Context) recipe.Recipe {
recipeName := c.Args().First()
if recipeName == "" {
ShowSubcommandHelpAndError(c, errors.New("no recipe provided"))
ShowSubcommandHelpAndError(c, errors.New("no recipe name provided"))
}
chosenRecipe, err := recipe.Get(recipeName)
@ -91,7 +91,7 @@ func ValidateRecipeWithPrompt(c *cli.Context) recipe.Recipe {
}
if recipeName == "" {
ShowSubcommandHelpAndError(c, errors.New("no recipe provided"))
ShowSubcommandHelpAndError(c, errors.New("no recipe name provided"))
}
chosenRecipe, err := recipe.Get(recipeName)