Fixed stackframe index
This commit is contained in:
parent
ed76209925
commit
9e0bc0da3e
@ -52,8 +52,6 @@ internal class ListenerManager<CONNECTION: Connection> {
|
||||
* Neither of these are useful in resolving exception handling from a users perspective, and only clutter the stacktrace.
|
||||
*/
|
||||
fun cleanStackTrace(throwable: Throwable) {
|
||||
// NOTE: when we remove stuff, we ONLY want to remove the "tail" of the stacktrace, not ALL parts of the stacktrace
|
||||
|
||||
// we never care about coroutine stacks, so filter then to start with
|
||||
val stackTrace = throwable.stackTrace.filterNot {
|
||||
val stackName = it.className
|
||||
@ -62,7 +60,7 @@ internal class ListenerManager<CONNECTION: Connection> {
|
||||
}.toTypedArray()
|
||||
|
||||
|
||||
var newEndIndex = stackTrace.size
|
||||
var newEndIndex = stackTrace.size - 1
|
||||
|
||||
// maybe offset by 1 because we have to adjust coroutine calls
|
||||
var newStartIndex = 0
|
||||
|
Loading…
Reference in New Issue
Block a user