diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 0779b9dbb5a..aa13881b41e 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2252,7 +2252,7 @@ func (f *Framework) MatchContainerOutput( } Logf("Output of node %q pod %q container %q: %s", podStatus.Spec.NodeName, podStatus.Name, container.Name, logs) } - return fmt.Errorf("expected pod %q success: %v", createdPod.Name, err) + return fmt.Errorf("expected pod %q success: %v", createdPod.Name, podErr) } Logf("Trying to get logs from node %s pod %s container %s: %v",