diff --git a/cmd/logmower.go b/cmd/logmower.go index 6696bbc..7f5b914 100644 --- a/cmd/logmower.go +++ b/cmd/logmower.go @@ -202,7 +202,9 @@ func getHostInfo(nodeName string) (h HostInfo, err error) { h.name = strings.TrimSpace(nodeName) id, errL := os.ReadFile(MACHINEID) + if errL != nil { err = errAppend(err, fmt.Errorf("id: %w", errL)) + } h.id = strings.TrimSpace(string(id))