From 6ee6ce3a16aa2f02fb14c322535ad216adedc472 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 2 Apr 2023 18:18:53 +0200 Subject: More information for a farming weight data load fail --- .../hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/main/java/at') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt index b33c0150e..9583e889e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt @@ -230,8 +230,7 @@ class EliteFarmingWeight { result["rank"].asInt } catch (e: Exception) { - apiError = true - LorenzUtils.error("[SkyHanni] Failed to load farming weight data from elitebot.dev! please report this on discord!") + error() e.printStackTrace() -1 } @@ -262,8 +261,13 @@ class EliteFarmingWeight { println("url: '$url'") e.printStackTrace() } + error() + } + + private fun error() { apiError = true - LorenzUtils.error("[SkyHanni] Failed to load farming weight data from elitebot.dev! please report this on discord!") + LorenzUtils.error("[SkyHanni] Loading the farming weight data from elitebot.dev failed!") + LorenzUtils.chat("§eYou can re-enter the garden to try to fix the problem. If this message repeats itself, please report it on Discord!") } private fun calculateCollectionWeight(round: Boolean = true): MutableMap { -- cgit