fixed bug with scopes usage
This commit is contained in:
1 parent
92cb088f36
commit
b7838b45ec
8 files changed
+98
-34
No files matched your search
@@ -210,8 +210,11 @@ class StackTraceEntry(
|
||||
/* Print this exception and its stack trace to standard output. */
|
||||
fun Exception.printStackTrace() {
|
||||
println(this)
|
||||
var lastEntry = null
|
||||
for( entry in stackTrace() ) {
|
||||
println("\tat "+entry)
|
||||
if( lastEntry == null || lastEntry !is StackTraceEntry || lastEntry.line != entry.line )
|
||||
println("\tat "+entry.toString())
|
||||
lastEntry = entry
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user