-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
There's a missing error check in the mentioned file, so a file reading error is ignored. It should be trivial to fix.
// GenAST creates an *ast.File containing type declarations and
// associated methods based on a set of XML schema.
func (cfg *Config) GenAST(files ...string) (*ast.File, error) {
data, err := cfg.readFiles(files...)
// HERE
code, err := cfg.GenCode(data...)
if err != nil {
return nil, err
}
return code.GenAST()
}Thanks
Metadata
Metadata
Assignees
Labels
No labels