diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-19 12:55:46 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-19 12:55:46 +0100 |
commit | bd0283998631bac9c433de6ace58e71d32a2123d (patch) | |
tree | 2f1dd5ef332f83ab39bc9c0c0d4059a2906110c9 /src/main/java/at/hannibal2/skyhanni/test | |
parent | 6bdcc845e8397041c44b5271af245597caf26353 (diff) | |
download | skyhanni-bd0283998631bac9c433de6ace58e71d32a2123d.tar.gz skyhanni-bd0283998631bac9c433de6ace58e71d32a2123d.tar.bz2 skyhanni-bd0283998631bac9c433de6ace58e71d32a2123d.zip |
logError -> logErrorWithData
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt | 7 |
1 files changed, 6 insertions, 1 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 0e7bccab6..cc24fbd5b 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt @@ -56,7 +56,12 @@ object ErrorManager { logError(IllegalStateException(internalMessage), userMessage, false, *extraData) } - fun logError(throwable: Throwable, message: String, vararg extraData: Pair<String, Any?>) { + @Deprecated("Use data as well", ReplaceWith("logErrorWithData()")) + fun logError(throwable: Throwable, message: String) { + logError(throwable, message, false) + } + + fun logErrorWithData(throwable: Throwable, message: String, vararg extraData: Pair<String, Any?>) { logError(throwable, message, false, *extraData) } |