summaryrefslogtreecommitdiff
path: root/src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt
diff options
context:
space:
mode:
authorThatGravyBoat <thatgravyboat@gmail.com>2021-09-30 16:55:07 -0230
committerThatGravyBoat <thatgravyboat@gmail.com>2021-09-30 16:55:07 -0230
commit6573cd3c17f6e2fda07624f34872144999113872 (patch)
treee09b4abaf4e71433ea04d54cafafaac7c42af79d /src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt
parentcaf7d8b1ed7c59b7fbe87cc77a6132a9452aecc1 (diff)
downloadRewardClaim-6573cd3c17f6e2fda07624f34872144999113872.tar.gz
RewardClaim-6573cd3c17f6e2fda07624f34872144999113872.tar.bz2
RewardClaim-6573cd3c17f6e2fda07624f34872144999113872.zip
Add an error message to the claiming just incase
Diffstat (limited to 'src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt')
-rw-r--r--src/main/kotlin/tech/thatgravyboat/rewardclaim/ui/RewardClaimGui.kt5
1 files changed, 3 insertions, 2 deletions
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()
}
}
}