We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0e7c3e commit 1078dafCopy full SHA for 1078daf
1 file changed
cmd/cdi/cmd/validate.go
@@ -19,6 +19,7 @@ package cmd
19
import (
20
"fmt"
21
"os"
22
+ "strings"
23
24
"github.com/spf13/cobra"
25
@@ -40,6 +41,13 @@ were reported by the registry.`,
40
41
return
42
}
43
44
+ fmt.Printf("CDI Registry has errors:\n")
45
+ for path, specErrors := range cdiErrors {
46
+ fmt.Printf("Spec file %s:\n", path)
47
+ for idx, err := range specErrors {
48
+ fmt.Printf(" %2d: %v\n", idx, strings.TrimSpace(err.Error()))
49
+ }
50
51
os.Exit(1)
52
},
53
0 commit comments