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

@ -81,6 +81,10 @@ func Get(recipeName string) (Recipe, error) {
return Recipe{}, err
}
if len(composeFiles) == 0 {
return Recipe{}, fmt.Errorf("%s is missing a compose.yml or compose.*.yml file?", recipeName)
}
envSamplePath := path.Join(config.ABRA_DIR, "apps", recipeName, ".env.sample")
sampleEnv, err := config.ReadEnv(envSamplePath)
if err != nil {