diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index b7f7d8af389..5c58b9c205d 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2222,7 +2222,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",