From d0e6fa65d21da12024122365e6b4ef2cb05b2c14 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Thu, 17 Nov 2022 14:51:18 +0100 Subject: [PATCH] Fix error-reporting --- lib/iproute2mapping/mapping.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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), + ); } } }