fix: bail out definitely on that error

See coop-cloud/organising#278.
This commit is contained in:
2021-12-19 22:44:19 +01:00
parent 6998a87eef
commit 3d3eefb2fe
2 changed files with 7 additions and 0 deletions

View File

@ -28,6 +28,9 @@ func ValidateRecipe(c *cli.Context) recipe.Recipe {
recipe, err := recipe.Get(recipeName)
if err != nil {
if c.Command.Name == "generate" {
if strings.Contains(err.Error(), "missing a compose") {
logrus.Fatal(err)
}
logrus.Warn(err)
} else {
logrus.Fatal(err)