diff --git a/lib/iproute2mapping/mapping.go b/lib/iproute2mapping/mapping.go index 7cb0686..284dfd3 100644 --- a/lib/iproute2mapping/mapping.go +++ b/lib/iproute2mapping/mapping.go @@ -32,9 +32,9 @@ func init() { for mapType, filePath := range filePaths{ ByName[mapType], ById[mapType], err = readFromFile(filePath) if(err != nil){ - Errors = []error{ - fmt.Errorf("failed reading iproute2 mapping-file '%s': %s", filePath, err), - }; + Errors = append(Errors, + fmt.Errorf("failed reading mapping-file '%s': %s", filePath, err), + ); } } }