Skip to content

Commit

Permalink
clarify expected file patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Jan 3, 2025
1 parent 09c7891 commit c7ffecb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ func getTopoFilePath(cmd *cobra.Command) error {
files, err := filepath.Glob("*.clab.y*ml")

if len(files) == 0 {
return errors.New("no topology files matching the pattern *.clab.y*ml found")
return errors.New("no topology files matching the pattern *.clab.yml or *.clab.yaml found")
}

if len(files) > 1 {
return fmt.Errorf("more than one topology file matching the pattern *.clab.y*ml found, can't pick one: %q", files)
return fmt.Errorf("more than one topology file matching the pattern *.clab.yml or *.clab.yaml found, can't pick one: %q", files)
}

topo = files[0]
Expand Down

0 comments on commit c7ffecb

Please sign in to comment.