Skip to content

Commit a7391ce

Browse files
committed
Catch a second type of ssh exception
Notice the casing. This one is from Intellij's libs. com.intellij.ssh.SshException: Timeout expired: 30000 MILLISECONDS
1 parent 6f1a610 commit a7391ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderLocateRemoteProjectStepView.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import com.intellij.openapi.util.Disposer
2828
import com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreenUIManager
2929
import com.intellij.remote.AuthType
3030
import com.intellij.remote.RemoteCredentialsHolder
31+
import com.intellij.ssh.SshException
3132
import com.intellij.ui.AnimatedIcon
3233
import com.intellij.ui.ColoredListCellRenderer
3334
import com.intellij.ui.DocumentAdapter
@@ -199,7 +200,8 @@ class CoderLocateRemoteProjectStepView(private val setNextButtonEnabled: (Boolea
199200
// Throw to retry these. The main one is
200201
// DeployException which fires when dd times out.
201202
is ConnectionException, is TimeoutException,
202-
is SSHException, is DeployException -> throw e
203+
is SSHException, is SshException,
204+
is DeployException -> throw e
203205
else -> {
204206
withContext(Dispatchers.Main) {
205207
logger.error("Failed to retrieve IDEs (attempt $attempt)", e)

0 commit comments

Comments
 (0)