Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Commit 7763e80

Browse files
committed
feat: better error handling
1 parent a13fceb commit 7763e80

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

  • src/main/kotlin/io/github/stream29/proxy

src/main/kotlin/io/github/stream29/proxy/Main.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@ package io.github.stream29.proxy
33
import kotlinx.coroutines.delay
44

55
suspend fun main() {
6-
// Just to initialize Global.kt
7-
config
6+
try {
7+
// Just to initialize Global.kt
8+
config
9+
} catch (t: Throwable) {
10+
t.printStackTrace()
11+
println("Failed to init proxy: ${t.message}")
12+
}
813
while (true) {
914
delay(10000)
1015
}

0 commit comments

Comments
 (0)