From 0884b9a12d51d588d8cc46a295d9488054110731 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 1 Mar 2024 11:57:12 +0100 Subject: Added more error data --- .../at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2') diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt index d2e5f389e..c403e09a6 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniConfigSearchResetCommand.kt @@ -61,6 +61,7 @@ object SkyHanniConfigSearchResetCommand { } catch (e: Throwable) { ErrorManager.logErrorWithData( e, "Could not reset config element '$term'", + "term" to term, "args" to args.joinToString(" ") ) return "§cCould not reset config element '$term'" @@ -118,6 +119,7 @@ object SkyHanniConfigSearchResetCommand { } catch (e: Exception) { ErrorManager.logErrorWithData( e, "Could not change config element", + "old" to shimmy.getJson(), "term" to term, "rawJson" to rawJson, "args" to args.joinToString(" ") @@ -145,7 +147,9 @@ object SkyHanniConfigSearchResetCommand { } catch (e: Exception) { ErrorManager.logErrorWithData( e, "Error while trying to toggle config element", - "args" to args.joinToString(" ") + "path" to path, + "rawJson1" to rawJson1, + "rawJson2" to rawJson2, ) "§cError while trying to toggle config element" } -- cgit