We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0774bc commit 9193668Copy full SHA for 9193668
core/kotlinx-coroutines-core/test/TestBase.kt
@@ -118,7 +118,11 @@ public actual open class TestBase actual constructor() {
118
initPoolsBeforeTest()
119
threadsBefore = currentThreads()
120
originalUncaughtExceptionHandler = Thread.getDefaultUncaughtExceptionHandler()
121
- Thread.setDefaultUncaughtExceptionHandler({ t, e -> uncaughtExceptions.add(e) })
+ Thread.setDefaultUncaughtExceptionHandler({ t, e ->
122
+ println("Uncaught exception in thread $t: $e")
123
+ e.printStackTrace()
124
+ uncaughtExceptions.add(e)
125
+ })
126
}
127
128
@After
0 commit comments