aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt7
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)
}