summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-02-03 12:09:39 -0500
committerGitHub <noreply@github.com>2021-02-03 12:09:39 -0500
commit4a1614e73feee048941296716dd85ceb6d15417d (patch)
treeb559ff5dfe36906117f5b65474d6b96be552937a
parent1c0d24960994bcdb6a2eafefb38ed386e983516b (diff)
parentbc149a4dd2ab66e3c3adce83d890def7e3268fc7 (diff)
downloadpodman-4a1614e73feee048941296716dd85ceb6d15417d.tar.gz
podman-4a1614e73feee048941296716dd85ceb6d15417d.tar.bz2
podman-4a1614e73feee048941296716dd85ceb6d15417d.zip
Merge pull request #9217 from vrothberg/attach-warn
bindings: attach: warn correct error
-rw-r--r--pkg/bindings/containers/attach.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/bindings/containers/attach.go b/pkg/bindings/containers/attach.go
index 69ae7a32f..586cdec8c 100644
--- a/pkg/bindings/containers/attach.go
+++ b/pkg/bindings/containers/attach.go
@@ -348,7 +348,7 @@ func attachHandleResize(ctx, winCtx context.Context, winChange chan os.Signal, i
resizeErr = ResizeContainerTTY(ctx, id, new(ResizeTTYOptions).WithHeight(h).WithWidth(w))
}
if resizeErr != nil {
- logrus.Warnf("failed to resize TTY: %v", err)
+ logrus.Warnf("failed to resize TTY: %v", resizeErr)
}
}
}