- Add du lexer

- Print problematic YAML filename when error is detected
This commit is contained in:
Jesse Portnoy
2023-07-19 22:46:52 +01:00
parent 2a6caac588
commit 137b073d05
2 changed files with 24 additions and 2 deletions
+2 -2
View File
@@ -73,12 +73,12 @@ func ParseSyntaxFiles(dir string, defs *[]*Def) (error, []string) {
for _, file_path := range files {
file, err := ioutil.ReadFile(file_path)
if err != nil {
warnings = append(warnings, err.Error())
warnings = append(warnings, file_path+": "+err.Error())
} else {
if len(file) > 0 {
d, err := ParseDef(file)
if err != nil {
warnings = append(warnings, err.Error())
warnings = append(warnings, file_path+": "+err.Error())
} else {
*defs = append(*defs, d)
}