Skip to content

Commit

Permalink
bindings: attach: warn correct error
Browse files Browse the repository at this point in the history
The resize warning logged the wrong error.  While this does not fix
 containers#9172, it may very well be helpful finding its root cause.

[NO TESTS NEEDED]

Signed-off-by: Valentin Rothberg <[email protected]>
  • Loading branch information
vrothberg authored and mheon committed Feb 4, 2021
1 parent 6d92172 commit 6213225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/bindings/containers/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 6213225

Please sign in to comment.