aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-02 20:41:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-02 20:41:21 +0100
commit7b329087dc47842e2a8337e650e6c037230da7ba (patch)
tree0855c1586309df64d9469d075c355a38b0e6e057 /src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt
parentee0ae23560e911fbec5e5262feaaa58dc5d52e7a (diff)
downloadskyhanni-7b329087dc47842e2a8337e650e6c037230da7ba.tar.gz
skyhanni-7b329087dc47842e2a8337e650e6c037230da7ba.tar.bz2
skyhanni-7b329087dc47842e2a8337e650e6c037230da7ba.zip
Shark fishing timer fix and other misc stuff.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt b/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt
index d776cfa01..41da163b0 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/APIUtil.kt
@@ -45,8 +45,7 @@ object APIUtil {
return parser.parse(retSrc) as JsonObject
} catch (e: JsonSyntaxException) {
if (retSrc.contains("<center><h1>502 Bad Gateway</h1></center>")) {
- println("502 Bad Gateway at getJSONResponse '$urlString'")
- LorenzUtils.error("[SkyHanni] Hypixel API error: 502 Bad Gateway!")
+ LorenzUtils.error("[SkyHanni] HyPixel API is down :(")
} else {
println("JsonSyntaxException at getJSONResponse '$urlString'")
LorenzUtils.error("[SkyHanni] JsonSyntaxException at getJSONResponse!")