diff --git a/cli/cmd/identity.go b/cli/cmd/identity.go index 62e4c88eadd51..cab3ec9c843ba 100644 --- a/cli/cmd/identity.go +++ b/cli/cmd/identity.go @@ -183,7 +183,7 @@ func getContainerCertificate(k8sAPI *k8s.KubernetesAPI, pod corev1.Pod, containe defer portForward.Stop() if err = portForward.Init(); err != nil { - fmt.Fprintf(os.Stderr, "Error running port-forward: %s", err) + fmt.Fprintf(os.Stderr, "Error running port-forward: %s\n", err) return nil, err } diff --git a/pkg/k8s/metrics.go b/pkg/k8s/metrics.go index 15edfcc3cbfee..f21d07557475a 100644 --- a/pkg/k8s/metrics.go +++ b/pkg/k8s/metrics.go @@ -27,7 +27,7 @@ func GetContainerMetrics( defer portForward.Stop() if err = portForward.Init(); err != nil { - fmt.Fprintf(os.Stderr, "Error running port-forward: %s", err) + fmt.Fprintf(os.Stderr, "Error running port-forward: %s\n", err) return nil, err }