Skip to content

Commit ddc629f

Browse files
committed
1 parent 255e449 commit ddc629f

File tree

1 file changed

+2
-1
lines changed
  • kotlin/basic-script-hello-world

1 file changed

+2
-1
lines changed

kotlin/basic-script-hello-world/Main.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ fun main(args: Array<String>) {
2525

2626
results.reports.forEach {
2727
if (it.severity > ScriptDiagnostic.Severity.DEBUG) {
28-
println(" : ${it.message}" + if (it.exception == null) "" else ": ${it.exception}")
28+
val ex = it.exception
29+
println(" : ${it.message}" + if (ex == null) "" else "\n${ex.stackTraceToString()}")
2930
}
3031
}
3132
}

0 commit comments

Comments
 (0)