cosmetics
This commit is contained in:
parent
ec28b219f3
commit
b7fe04d65f
@ -112,7 +112,7 @@ open class ObjException(
|
|||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
// Fallback textual entry if StackTraceEntry class is not available in this scope
|
// Fallback textual entry if StackTraceEntry class is not available in this scope
|
||||||
result.list += ObjString("?${pos.source.objSourceName}:${pos.line+1}:${pos.column+1}: ${pos.currentLine}")
|
result.list += ObjString("#${pos.source.objSourceName}:${pos.line+1}:${pos.column+1}: ${pos.currentLine}")
|
||||||
}
|
}
|
||||||
lastPos = pos
|
lastPos = pos
|
||||||
}
|
}
|
||||||
|
|||||||
@ -266,12 +266,8 @@ class StackTraceEntry(
|
|||||||
/* Print this exception and its stack trace to standard output. */
|
/* Print this exception and its stack trace to standard output. */
|
||||||
fun Exception.printStackTrace() {
|
fun Exception.printStackTrace() {
|
||||||
println(this)
|
println(this)
|
||||||
var lastEntry = null
|
for( entry in stackTrace )
|
||||||
for( entry in stackTrace ) {
|
println("\tat "+entry.toString())
|
||||||
if( lastEntry == null || lastEntry !is StackTraceEntry || lastEntry.line != entry.line )
|
|
||||||
println("\tat "+entry.toString())
|
|
||||||
lastEntry = entry
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Compile this string into a regular expression. */
|
/* Compile this string into a regular expression. */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user