Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd5116 commit ed5efe5Copy full SHA for ed5efe5
cli/ssh.go
@@ -36,8 +36,6 @@ import (
36
var workspacePollInterval = time.Minute
37
var autostopNotifyCountdown = []time.Duration{30 * time.Minute}
38
39
-var errConnectionDropped = xerrors.New("SSH connection ended unexpectedly")
40
-
41
func ssh() *cobra.Command {
42
var (
43
stdio bool
@@ -237,7 +235,7 @@ func ssh() *cobra.Command {
237
235
// If the connection drops unexpectedly, we get an ExitMissingError but no other
238
236
// error details, so try to at least give the user a better message
239
if errors.Is(err, &gossh.ExitMissingError{}) {
240
- return errConnectionDropped
+ return xerrors.New("SSH connection ended unexpectedly")
241
}
242
return err
243
0 commit comments