aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/data
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-08 22:50:24 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-07-08 22:50:24 +0200
commit5ce14a63f6cfd523148fe53953f91a45ab388787 (patch)
treed5372140ba569eba85cee2f19c521d679e789a84 /src/main/java/at/hannibal2/skyhanni/data
parent7710e2df866c00e3fe677d8ca46e2b495d03339b (diff)
downloadskyhanni-5ce14a63f6cfd523148fe53953f91a45ab388787.tar.gz
skyhanni-5ce14a63f6cfd523148fe53953f91a45ab388787.tar.bz2
skyhanni-5ce14a63f6cfd523148fe53953f91a45ab388787.zip
Better repo error handling
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
index e1d6aa933..faefb9e33 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/repo/RepoManager.kt
@@ -3,6 +3,7 @@ package at.hannibal2.skyhanni.data.repo
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.config.ConfigManager
import at.hannibal2.skyhanni.events.RepositoryReloadEvent
+import at.hannibal2.skyhanni.test.command.CopyErrorCommand
import at.hannibal2.skyhanni.utils.LorenzUtils
import com.google.gson.JsonObject
import net.minecraft.client.Minecraft
@@ -122,8 +123,7 @@ class RepoManager(private val configLocation: File) {
LorenzUtils.chat("§e[SkyHanni] §a$answerMessage")
}
} catch (e: java.lang.Exception) {
- comp.completeExceptionally(e)
- LorenzUtils.error("An error occurred while trying to reload the repo! See logs for more info.")
+ CopyErrorCommand.logError(e, "Error reading repo data!")
}
}
return comp