Print message if subst doesn't match any field value

This commit is contained in:
Phani Teja Marupaka
2020-08-16 15:54:34 -07:00
parent 0d5552fca6
commit 5d8722a786
2 changed files with 18 additions and 10 deletions

View File

@@ -78,7 +78,8 @@ func (c SetterCreator) Create(openAPIPath, resourcesPath string) error {
Outputs: []kio.Writer{inout},
}.Execute()
if a.Count == 0 {
fmt.Printf("setter %s doesn't match any field in resources, but creating setter definition\n", c.Name)
fmt.Printf("setter %s doesn't match any field in resource configs, "+
"but creating setter definition\n", c.Name)
}
if err != nil {
return err