Fix error handling in connect op

This commit is contained in:
Daniel 2024-03-29 11:20:45 +01:00
parent 8c048989f8
commit c2cbd27b8a

View file

@ -152,7 +152,7 @@ func NewConnectOp(tunnel *Tunnel) (*ConnectOp, *terminal.Error) {
// Initialize.
tErr := op.t.StartOperation(op, container.New(data), 5*time.Second)
if err != nil {
if tErr != nil {
return nil, tErr
}