File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
src/main/kotlin/com/coder/gateway/views/steps Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 66
77### Fixed
88- terminal link is now correct when host ends in ` / `
9+ - improved resiliency and error handling when trying to open the last successful connection
910
1011## 2.1.6-eap.0 - 2023-02-02
1112
Original file line number Diff line number Diff line change @@ -321,9 +321,20 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
321321 try {
322322 coderClient.initClientSession(url.toURL(), token)
323323 loginAndLoadWorkspace(token)
324- } catch (e: AuthenticationResponseException ) {
325- // probably the token is expired
326- askTokenAndOpenSession()
324+ } catch (e: Exception ) {
325+ when (e) {
326+ is AuthenticationResponseException -> {
327+ // probably the token is expired
328+ askTokenAndOpenSession()
329+ }
330+
331+ else -> {
332+ logger.warn(" An exception was encountered while opening ${localWizardModel.coderURL} . Reason: ${e.message} " )
333+ localWizardModel = CoderWorkspacesWizardModel ()
334+ tfUrl?.text = localWizardModel.coderURL
335+ }
336+ }
337+
327338 }
328339 }
329340 }
You can’t perform that action at this time.
0 commit comments