diff --git a/kotlin/basic-script-hello-world/Main.kt b/kotlin/basic-script-hello-world/Main.kt index 46be9fb..8a58e1d 100644 --- a/kotlin/basic-script-hello-world/Main.kt +++ b/kotlin/basic-script-hello-world/Main.kt @@ -25,7 +25,8 @@ fun main(args: Array) { results.reports.forEach { if (it.severity > ScriptDiagnostic.Severity.DEBUG) { - println(" : ${it.message}" + if (it.exception == null) "" else ": ${it.exception}") + val ex = it.exception + println(" : ${it.message}" + if (ex == null) "" else "\n${ex.stackTraceToString()}") } } }