Skip to content
Snippets Groups Projects
Commit 6853304b authored by steeve.chailloux's avatar steeve.chailloux
Browse files

handle case when there's no beaver file

parent 82eca81e
No related branches found
No related tags found
No related merge requests found
Pipeline #36723 passed
......@@ -136,6 +136,13 @@
if err != nil {
return fmt.Errorf("failed to create config from %s: %w", dir, err)
}
if config == nil {
if len(c.Layers) == 1 {
return fmt.Errorf("Beaver file not found in directory: %s", dir)
} else {
continue
}
}
config.Dir = dir
if err := config.Absolutize(dir); err != nil {
return fmt.Errorf("failed to absolutize config from dir: %s, %w", dir, err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment