Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
TWiStErRob committed Nov 3, 2022
1 parent 255e449 commit ddc629f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kotlin/basic-script-hello-world/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ fun main(args: Array<String>) {

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()}")
}
}
}
Expand Down

0 comments on commit ddc629f

Please sign in to comment.