We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20997b1 commit 0afacabCopy full SHA for 0afacab
pkg/genall/genall.go
@@ -165,14 +165,16 @@ func (r *Runtime) Run() bool {
165
return true
166
}
167
168
+ hadErrs := false
169
for _, gen := range r.Generators {
170
ctx := r.GenerationContext // make a shallow copy
171
ctx.OutputRule = r.OutputRules.ForGenerator(gen)
172
if err := (*gen).Generate(&ctx); err != nil {
173
fmt.Fprintln(os.Stderr, err)
174
+ hadErrs = true
175
176
177
178
// skip TypeErrors -- they're probably just from partial typechecking in crd-gen
- return loader.PrintErrors(r.Roots, packages.TypeError)
179
+ return loader.PrintErrors(r.Roots, packages.TypeError) || hadErrs
180
0 commit comments