File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/main/kotlin/com/coder/gateway/views/steps Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,15 @@ class CoderLocateRemoteProjectStepView(private val setNextButtonEnabled: (Boolea
217
217
update = { attempt, retryMs, e ->
218
218
logger.error(" Failed to retrieve IDEs (attempt $attempt ; will retry in $retryMs ms)" , e)
219
219
cbIDEComment.foreground = UIUtil .getErrorForeground()
220
- cbIDEComment.text = e.message ? : " The error did not provide any further details"
220
+ // When the dd command times out all we get is a
221
+ // DeployException and some text that it failed but not why.
222
+ // Plus it includes a long tmp path that is a bit nasty to
223
+ // display so replace it with something nicer.
224
+ if (e is DeployException && e.message.contains(" Worker binary deploy failed" )) {
225
+ cbIDEComment.text = " Failed to upload worker binary...it may have timed out. Check the command log for details."
226
+ } else {
227
+ cbIDEComment.text = e.message ? : " The error did not provide any further details."
228
+ }
221
229
val delayS = TimeUnit .MILLISECONDS .toSeconds(retryMs)
222
230
val delay = if (delayS < 1 ) " now" else " in $delayS second${if (delayS > 1 ) " s" else " " } "
223
231
cbIDE.renderer = IDECellRenderer (CoderGatewayBundle .message(" gateway.connector.view.coder.remoteproject.retry-error.text" , delay))
You can’t perform that action at this time.
0 commit comments