File tree 2 files changed +7
-2
lines changed
kotlin/com/coder/gateway/views/steps
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,12 @@ class CoderWorkspacesStepView(val setNextButtonEnabled: (Boolean) -> Unit) : Cod
482
482
483
483
tableOfWorkspaces.setEmptyState(" Connected to $deploymentURL " )
484
484
} catch (e: Exception ) {
485
- val errorSummary = e.message ? : " No reason was provided"
485
+ // These errors can be quite long with cascading reasons split
486
+ // by colons so just take the first one otherwise they will
487
+ // scroll off the edge as the empty state label does not wrap.
488
+ // Users can still see the full error by using the error bubble
489
+ // in the bottom right corner.
490
+ val errorSummary = e.message?.substringBefore(" :" ) ? : " No reason was provided"
486
491
var msg = CoderGatewayBundle .message(
487
492
" gateway.connector.view.workspaces.connect.failed" ,
488
493
deploymentURL,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ gateway.connector.view.coder.workspaces.unsupported.coder.version=Coder version
23
23
gateway.connector.view.workspaces.connect.unauthorized =Token was rejected by {0}; has your token expired?
24
24
gateway.connector.view.workspaces.connect.timeout =Unable to connect to {0}; is it up?
25
25
gateway.connector.view.workspaces.connect.download-failed =Failed to download Coder CLI from {0}: {1}
26
- gateway.connector.view.workspaces.connect.failed =Failed to configure connection to {0}: {1}
26
+ gateway.connector.view.workspaces.connect.failed =Failed to connect to {0}: {1}
27
27
gateway.connector.view.workspaces.token.comment =The last used token is shown above.
28
28
gateway.connector.view.workspaces.token.rejected =This token was rejected.
29
29
gateway.connector.view.workspaces.token.injected =This token was pulled from your CLI config.
You can’t perform that action at this time.
0 commit comments