aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 16:27:10 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-10-14 16:27:10 +0200
commit7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a (patch)
tree3af4a0a6955e4ea81f7e008ded4f196c01fb4998 /src/main/java/at/hannibal2/skyhanni/events
parentb4648fe70ce0538325ed6df3ad068e9fe9237c0c (diff)
downloadskyhanni-7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a.tar.gz
skyhanni-7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a.tar.bz2
skyhanni-7b5f78fe30e2c84ea5a9bf01f92bb8ea4397a19a.zip
renamed CopyErrorCommand to ErrorManager
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
index 62376c698..32c552221 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
@@ -1,6 +1,6 @@
package at.hannibal2.skyhanni.events
-import at.hannibal2.skyhanni.test.command.CopyErrorCommand
+import at.hannibal2.skyhanni.test.command.ErrorManager
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.fml.common.eventhandler.Event
@@ -14,7 +14,7 @@ abstract class LorenzEvent : Event() {
return runCatching {
postWithoutCatch()
}.onFailure {
- CopyErrorCommand.logError(
+ ErrorManager.logError(
it,
"Caught an ${it::class.simpleName ?: "error"} at ${eventName}: '${it.message}'"
)
diff --git a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
index 06d10f505..18ff50b0a 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/RepositoryReloadEvent.kt
@@ -1,7 +1,7 @@
package at.hannibal2.skyhanni.events
import at.hannibal2.skyhanni.data.repo.RepoUtils
-import at.hannibal2.skyhanni.test.command.CopyErrorCommand
+import at.hannibal2.skyhanni.test.command.ErrorManager
import com.google.gson.Gson
import com.google.gson.JsonObject
import java.io.File
@@ -12,7 +12,7 @@ class RepositoryReloadEvent(val repoLocation: File, val gson: Gson) : LorenzEven
inline fun <reified T : Any> getConstant(constant: String) = try {
RepoUtils.getConstant(repoLocation, constant, gson, T::class.java)
} catch (e: Exception) {
- CopyErrorCommand.logError(
+ ErrorManager.logError(
Exception("Repo parsing error while trying to read constant '$constant'", e),
"Error reading repo data"
)