cosmetics

This commit is contained in:
sergeych committed 2026-01-14 22:11:33 +03:00
1 parent ec28b219f3
commit b7fe04d65f
2 files changed
+3 -7

No files matched your search

+2 -6
View File
@@ -266,12 +266,8 @@ class StackTraceEntry(
/* Print this exception and its stack trace to standard output. */
fun Exception.printStackTrace() {
println(this)
var lastEntry = null
for( entry in stackTrace ) {
if( lastEntry == null || lastEntry !is StackTraceEntry || lastEntry.line != entry.line )
println("\tat "+entry.toString())
lastEntry = entry
}
for( entry in stackTrace )
println("\tat "+entry.toString())
}
/* Compile this string into a regular expression. */