Skip to content

Commit c7ffecb

Browse files
committed
clarify expected file patterns
1 parent 09c7891 commit c7ffecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ func getTopoFilePath(cmd *cobra.Command) error {
139139
files, err := filepath.Glob("*.clab.y*ml")
140140

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

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

149149
topo = files[0]

0 commit comments

Comments
 (0)