aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/RepoErrorData.kt1
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/RepoErrorData.kt b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/RepoErrorData.kt
index 0fe893723..41d0f701c 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/RepoErrorData.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/jsonobjects/repo/RepoErrorData.kt
@@ -11,6 +11,7 @@ data class RepoErrorData(
@Expose @SerializedName("message_exact") private var rawMessageExact: List<String>?,
@Expose @SerializedName("message_starts_with") private var rawMessageStartsWith: List<String>?,
@Expose @SerializedName("replace_message") var replaceMessage: String?,
+ @Expose @SerializedName("custom_message") var customMessage: String?,
@Expose @SerializedName("affected_versions") var affectedVersions: List<String> = listOf(),
) {
val messageExact get() = rawMessageExact ?: emptyList()
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 fecdb6cdd..25b485c5a 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/command/ErrorManager.kt
@@ -190,6 +190,10 @@ object ErrorManager {
finalMessage = it
hideError = false
}
+ repoError.customMessage?.let {
+ ChatUtils.userError(it)
+ return null
+ }
break
}
}