From 6d5de7458d3f8b5211aac8275473e6b31c4f4fb8 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 8 Dec 2020 15:23:35 +0100 Subject: [PATCH] cleanup: standardize error format in util.k8sGetNodeLabels() Signed-off-by: Niels de Vos --- internal/util/topology.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/topology.go b/internal/util/topology.go index d20e4dbad..84a00a088 100644 --- a/internal/util/topology.go +++ b/internal/util/topology.go @@ -35,7 +35,7 @@ func k8sGetNodeLabels(nodeName string) (map[string]string, error) { client := NewK8sClient() node, err := client.CoreV1().Nodes().Get(context.TODO(), nodeName, metav1.GetOptions{}) if err != nil { - return nil, fmt.Errorf("failed to get node (%s) information : %v", nodeName, err) + return nil, fmt.Errorf("failed to get node %q information: %w", nodeName, err) } return node.GetLabels(), nil