summaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authorValentin Rothberg <rothberg@redhat.com>2021-02-03 14:35:42 +0100
committerValentin Rothberg <rothberg@redhat.com>2021-02-03 14:35:42 +0100
commitbc149a4dd2ab66e3c3adce83d890def7e3268fc7 (patch)
treeb518fab9306ac3720b4c288fcd32cd98b3bdea3e /pkg/bindings
parent4ce8b1281e69b55b6024e87f2dec06638c678f10 (diff)
downloadpodman-bc149a4dd2ab66e3c3adce83d890def7e3268fc7.tar.gz
podman-bc149a4dd2ab66e3c3adce83d890def7e3268fc7.tar.bz2
podman-bc149a4dd2ab66e3c3adce83d890def7e3268fc7.zip
bindings: attach: warn correct error
The resize warning logged the wrong error. While this does not fix #9172, it may very well be helpful finding its root cause. [NO TESTS NEEDED] Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'pkg/bindings')
-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)
}
}
}