Fix error handling in connect op
This commit is contained in:
@@ -152,7 +152,7 @@ func NewConnectOp(tunnel *Tunnel) (*ConnectOp, *terminal.Error) {
|
|||||||
|
|
||||||
// Initialize.
|
// Initialize.
|
||||||
tErr := op.t.StartOperation(op, container.New(data), 5*time.Second)
|
tErr := op.t.StartOperation(op, container.New(data), 5*time.Second)
|
||||||
if err != nil {
|
if tErr != nil {
|
||||||
return nil, tErr
|
return nil, tErr
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user