Fix error-reporting

release-0.1^2
Ruakij 2 years ago
parent f136bcb207
commit d0e6fa65d2

@ -32,9 +32,9 @@ func init() {
for mapType, filePath := range filePaths{ for mapType, filePath := range filePaths{
ByName[mapType], ById[mapType], err = readFromFile(filePath) ByName[mapType], ById[mapType], err = readFromFile(filePath)
if(err != nil){ if(err != nil){
Errors = []error{ Errors = append(Errors,
fmt.Errorf("failed reading iproute2 mapping-file '%s': %s", filePath, err), fmt.Errorf("failed reading mapping-file '%s': %s", filePath, err),
}; );
} }
} }
} }

Loading…
Cancel
Save