diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2021-02-03 14:35:42 +0100 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-02-04 14:21:56 -0500 |
commit | 6213225c919b3b30a298a9a2fb676da9ba811e37 (patch) | |
tree | af15231b74b5cf20aa2de5976a8ac68bed7ab4dd | |
parent | 6d9217228b87e5ea5b0e215701d8e001c44e1917 (diff) | |
download | podman-6213225c919b3b30a298a9a2fb676da9ba811e37.tar.gz podman-6213225c919b3b30a298a9a2fb676da9ba811e37.tar.bz2 podman-6213225c919b3b30a298a9a2fb676da9ba811e37.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>
-rw-r--r-- | pkg/bindings/containers/attach.go | 2 |
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) } } } |