fix: Linter fix for missing error handler

This commit is contained in:
Ilya Kuznetsov 2024-12-10 14:54:31 +01:00
parent d1649682e6
commit 00164a8dbf
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
1 changed files with 4 additions and 1 deletions

View File

@ -139,7 +139,10 @@ func generateSchema(workdir, outputFile string) {
log.Fatal(err)
}
fmt.Printf("Writing OpenAPI annotations to %s\n", annotationsOpenApiPath)
p.extractAnnotations(reflect.TypeOf(config.Root{}), annotationsOpenApiPath, annotationsOpenApiOverridesPath)
err = p.extractAnnotations(reflect.TypeOf(config.Root{}), annotationsOpenApiPath, annotationsOpenApiOverridesPath)
if err != nil {
log.Fatal(err)
}
}
a, err := newAnnotationHandler([]string{annotationsOpenApiPath, annotationsOpenApiOverridesPath, annotationsPath})