mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-01 09:54:34 -05:00
also handle Errors from java
This commit is contained in:
@@ -97,7 +97,7 @@ fun applicationSetup() {
|
||||
if (serverConfig.systemTrayEnabled) {
|
||||
try {
|
||||
systemTray
|
||||
} catch (e: Exception) {
|
||||
} catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ import kotlin.system.exitProcess
|
||||
fun openInBrowser() {
|
||||
try {
|
||||
Desktop.browseURL("http://127.0.0.1:4567")
|
||||
} catch (e: Exception) {
|
||||
} catch (e: Throwable) { // cover both java.lang.Exception and java.lang.Error
|
||||
e.printStackTrace()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user