fix: better error

This commit is contained in:
decentral1se 2022-01-01 21:46:24 +01:00
parent 49f565e5db
commit 3119220c21
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
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)

View File

@ -50,7 +50,7 @@ recipe and domain in the sample environment config).
recipeName := c.Args().First()
if recipeName == "" {
internal.ShowSubcommandHelpAndError(c, errors.New("no recipe provided"))
internal.ShowSubcommandHelpAndError(c, errors.New("no recipe name provided"))
}
directory := path.Join(config.RECIPES_DIR, recipeName)