diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-02-25 12:54:16 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2024-02-25 12:54:16 +0100 |
commit | d56518c4e7547d82bed65543ffaf22fde70a6cb6 (patch) | |
tree | e3284856d031acfd1916a2591bd67fb20548ff98 /src/main/java/at | |
parent | 67261413a76819ad2ef16182f56e2c4b61b21012 (diff) | |
download | skyhanni-d56518c4e7547d82bed65543ffaf22fde70a6cb6.tar.gz skyhanni-d56518c4e7547d82bed65543ffaf22fde70a6cb6.tar.bz2 skyhanni-d56518c4e7547d82bed65543ffaf22fde70a6cb6.zip |
Made ErrorManager compact stack trace even more compacter.
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt index 7196dda72..9d3a6f4c9 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt @@ -20,6 +20,7 @@ object ErrorManager { private val breakAfter = listOf( "at at.hannibal2.skyhanni.config.commands.Commands\$createCommand", "at net.minecraftforge.fml.common.eventhandler.EventBus.post", + "at at.hannibal2.skyhanni.mixins.hooks.NetHandlerPlayClientHookKt.onSendPacket", ) private val replace = mapOf( @@ -45,7 +46,7 @@ object ErrorManager { "at at.hannibal2.skyhanni.config.commands.SimpleCommand.", "at at.hannibal2.skyhanni.config.commands.Commands\$createCommand\$1.processCommand", "at at.hannibal2.skyhanni.test.command.ErrorManager.logError", - "at at.hannibal2.skyhanni.events.LorenzEvent.postAndCatchAndBlock", + "at at.hannibal2.skyhanni.events.LorenzEvent.postAndCatch", "at net.minecraft.launchwrapper.", ) @@ -184,7 +185,6 @@ object ErrorManager { for (traceElement in stackTrace) { val text = "\tat $traceElement" if (!fullStackTrace && text in parent) { - println("broke at: $text") break } var visualText = text @@ -194,6 +194,7 @@ object ErrorManager { } } if (!fullStackTrace && breakAfter.any { text.contains(it) }) { + add(visualText) break } if (ignored.any { text.contains(it) }) continue |