forked from toolshed/abra
fix: warn on invalid envs for catalogue generation
Closes coop-cloud/organising#256.
This commit is contained in:
@ -27,7 +27,11 @@ func ValidateRecipe(c *cli.Context) recipe.Recipe {
|
||||
|
||||
recipe, err := recipe.Get(recipeName)
|
||||
if err != nil {
|
||||
logrus.Fatal(err)
|
||||
if c.Command.Name == "generate" {
|
||||
logrus.Warn(err)
|
||||
} else {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
logrus.Debugf("validated '%s' as recipe argument", recipeName)
|
||||
|
Reference in New Issue
Block a user