Ensure crash is reflected

This commit is contained in:
Mygod
2020-08-12 12:01:23 +08:00
parent 788fe65499
commit de9d2a744f

View File

@@ -348,6 +348,7 @@ class RootServer {
fun main(args: Array<String>) {
Thread.setDefaultUncaughtExceptionHandler { thread, throwable ->
Logger.me.e("Uncaught exception from $thread", throwable)
throwable.printStackTrace() // stderr will be read by listener
exitProcess(1)
}
rootMain(args)