Skip to content

Commit 5490055

Browse files
committed
Add some details around the deploy exception
1 parent a7391ce commit 5490055

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderLocateRemoteProjectStepView.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,13 @@ class CoderLocateRemoteProjectStepView(private val setNextButtonEnabled: (Boolea
217217
update = { attempt, retryMs, e ->
218218
logger.error("Failed to retrieve IDEs (attempt $attempt; will retry in $retryMs ms)", e)
219219
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+
if (e is DeployException && e.message.contains("Worker binary deploy failed")) {
223+
cbIDEComment.text = "Failed to upload worker binary...it may have timed out (check the command log for details)"
224+
} else {
225+
cbIDEComment.text = e.message ?: "The error did not provide any further details"
226+
}
221227
val delayS = TimeUnit.MILLISECONDS.toSeconds(retryMs)
222228
val delay = if (delayS < 1) "now" else "in $delayS second${if (delayS > 1) "s" else ""}"
223229
cbIDE.renderer = IDECellRenderer(CoderGatewayBundle.message("gateway.connector.view.coder.remoteproject.retry-error.text", delay))

0 commit comments

Comments
 (0)