Add print of detailed stack trace to NonFir modularized test
diff --git a/compiler/fir/modularized-tests/tests/org/jetbrains/kotlin/fir/NonFirResolveModularizedTotalKotlinTest.kt b/compiler/fir/modularized-tests/tests/org/jetbrains/kotlin/fir/NonFirResolveModularizedTotalKotlinTest.kt
index 836f727..a2cbbfa 100644
--- a/compiler/fir/modularized-tests/tests/org/jetbrains/kotlin/fir/NonFirResolveModularizedTotalKotlinTest.kt
+++ b/compiler/fir/modularized-tests/tests/org/jetbrains/kotlin/fir/NonFirResolveModularizedTotalKotlinTest.kt
@@ -36,7 +36,16 @@
         val project = environment.project
 
         val time = measureNanoTime {
-            KotlinToJVMBytecodeCompiler.analyze(environment, null)
+            try {
+                KotlinToJVMBytecodeCompiler.analyze(environment, null)
+            } catch (e: Throwable) {
+                var exception: Throwable? = e
+                while (exception != null && exception != exception.cause) {
+                    exception.printStackTrace()
+                    exception = exception.cause
+                }
+                throw e
+            }
         }
 
         files += environment.getSourceFiles().size