diff --git a/server/src/main/kotlin/ir/armor/tachidesk/server/ServerSetup.kt b/server/src/main/kotlin/ir/armor/tachidesk/server/ServerSetup.kt index 24ef917..5e7d2a9 100644 --- a/server/src/main/kotlin/ir/armor/tachidesk/server/ServerSetup.kt +++ b/server/src/main/kotlin/ir/armor/tachidesk/server/ServerSetup.kt @@ -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() } } diff --git a/server/src/main/kotlin/ir/armor/tachidesk/server/util/SystemTray.kt b/server/src/main/kotlin/ir/armor/tachidesk/server/util/SystemTray.kt index 0cdd907..495640d 100644 --- a/server/src/main/kotlin/ir/armor/tachidesk/server/util/SystemTray.kt +++ b/server/src/main/kotlin/ir/armor/tachidesk/server/util/SystemTray.kt @@ -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() } }