Skip to content

Commit e91ae43

Browse files
committed
Replace deploy worker error
1 parent 5490055 commit e91ae43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,12 @@ class CoderLocateRemoteProjectStepView(private val setNextButtonEnabled: (Boolea
219219
cbIDEComment.foreground = UIUtil.getErrorForeground()
220220
// When the dd command times out all we get is a
221221
// 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.
222224
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)"
225+
cbIDEComment.text = "Failed to upload worker binary...it may have timed out. Check the command log for details."
224226
} else {
225-
cbIDEComment.text = e.message ?: "The error did not provide any further details"
227+
cbIDEComment.text = e.message ?: "The error did not provide any further details."
226228
}
227229
val delayS = TimeUnit.MILLISECONDS.toSeconds(retryMs)
228230
val delay = if (delayS < 1) "now" else "in $delayS second${if (delayS > 1) "s" else ""}"

0 commit comments

Comments
 (0)