Skip to content

Commit 082aac1

Browse files
committed
catch error
Tool: gitpod/catfood.gitpod.cloud
1 parent b257b6b commit 082aac1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

components/ide/jetbrains/backend-plugin/src/main/kotlin/io/gitpod/jetbrains/remote/AbstractGitpodPortForwardingService.kt

+5-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ abstract class AbstractGitpodPortForwardingService : GitpodPortForwardingService
217217
private suspend fun <T> processPortsInBatches(ports: List<T>, action: suspend (T) -> Unit) {
218218
ports.chunked(BATCH_SIZE).forEach { batch ->
219219
batch.forEach { port ->
220-
action(port)
220+
try {
221+
action(port)
222+
} catch (e: Exception) {
223+
thisLogger().warn("gitpod: Error processing port in batch", e)
224+
}
221225
}
222226
delay(BATCH_DELAY)
223227
}

0 commit comments

Comments
 (0)