diff --git a/cmd/generate-fixer-deprecations/main.go b/cmd/generate-fixer-deprecations/main.go index 8c355c9ad..ed271f83b 100644 --- a/cmd/generate-fixer-deprecations/main.go +++ b/cmd/generate-fixer-deprecations/main.go @@ -71,6 +71,9 @@ func main() { // execute template into buffer deprecated := &executeOpts{DeprecatedOpts: allDeprecatedOpts} err = deprecatedOptsTemplate.Execute(&buf, deprecated) + if err != nil { + panic(err) + } // we've written unformatted go code to the file. now we have to format it. out, err := format.Source(buf.Bytes()) if err != nil {