From 6573cd3c17f6e2fda07624f34872144999113872 Mon Sep 17 00:00:00 2001 From: ThatGravyBoat Date: Thu, 30 Sep 2021 16:55:07 -0230 Subject: Add an error message to the claiming just incase --- src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt b/src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt index acdc2f7..ad22f8c 100644 --- a/src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt +++ b/src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt @@ -261,8 +261,9 @@ class RewardClaimGui(private val id: String) : WindowScreen() { CookieManager.setDefault(null) restorePreviousScreen() } - } catch (ignored: Exception) { - //IGNORED + } catch (e: Exception) { + errorPopup("Error: " + e.message) + e.printStackTrace() } } } -- cgit