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 6
6
7
7
### Fixed
8
8
- terminal link is now correct when host ends in ` / `
9
+ - improved resiliency and error handling trying to open last successful connection
9
10
10
11
## 2.1.6-eap.0 - 2023-02-02
11
12
Original file line number Diff line number Diff line change @@ -321,9 +321,20 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
321
321
try {
322
322
coderClient.initClientSession(url.toURL(), token)
323
323
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} . Reasons: ${e.message} " )
333
+ localWizardModel = CoderWorkspacesWizardModel ()
334
+ tfUrl?.text = localWizardModel.coderURL
335
+ }
336
+ }
337
+
327
338
}
328
339
}
329
340
}
You can’t perform that action at this time.
0 commit comments