Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Fixed
- terminal link is now correct when host ends in `/`
- improved resiliency and error handling when trying to open the last successful connection

## 2.1.6-eap.0 - 2023-02-02

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,20 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
try {
coderClient.initClientSession(url.toURL(), token)
loginAndLoadWorkspace(token)
} catch (e: AuthenticationResponseException) {
// probably the token is expired
askTokenAndOpenSession()
} catch (e: Exception) {
when (e) {
is AuthenticationResponseException -> {
// probably the token is expired
askTokenAndOpenSession()
}

else -> {
logger.warn("An exception was encountered while opening ${localWizardModel.coderURL}. Reasons: ${e.message}")
localWizardModel = CoderWorkspacesWizardModel()
tfUrl?.text = localWizardModel.coderURL
}
}

}
}
}
Expand Down