Ensure crash is reflected
This commit is contained in:
@@ -348,6 +348,7 @@ class RootServer {
|
|||||||
fun main(args: Array<String>) {
|
fun main(args: Array<String>) {
|
||||||
Thread.setDefaultUncaughtExceptionHandler { thread, throwable ->
|
Thread.setDefaultUncaughtExceptionHandler { thread, throwable ->
|
||||||
Logger.me.e("Uncaught exception from $thread", throwable)
|
Logger.me.e("Uncaught exception from $thread", throwable)
|
||||||
|
throwable.printStackTrace() // stderr will be read by listener
|
||||||
exitProcess(1)
|
exitProcess(1)
|
||||||
}
|
}
|
||||||
rootMain(args)
|
rootMain(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user