aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-13 01:44:33 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-05-13 01:44:33 +0200
commite9ec7461cb29b9673619204891243f1fb7e3e175 (patch)
tree62137b87351aa1894f8a2ab741ae8df8b5de73a6 /src/main
parent5d84d3afc7bd2739ad378f15964fd7d65288a9cc (diff)
downloadskyhanni-e9ec7461cb29b9673619204891243f1fb7e3e175.tar.gz
skyhanni-e9ec7461cb29b9673619204891243f1fb7e3e175.tar.bz2
skyhanni-e9ec7461cb29b9673619204891243f1fb7e3e175.zip
Adding version text to error messages
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
index 400c312fb..57410df5d 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/LorenzEvent.kt
@@ -1,5 +1,6 @@
package at.hannibal2.skyhanni.events
+import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.utils.LorenzUtils
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.fml.common.eventhandler.Event
@@ -18,7 +19,7 @@ abstract class LorenzEvent : Event() {
LorenzUtils.chat("§c[SkyHanni] You need to use a newer version of NotEnoughUpdates (alpha-11 or newer)! If you need help downloading it, go to the skyhanni discord.")
} else {
it.printStackTrace()
- LorenzUtils.chat("§cSkyHanni caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}.")
+ LorenzUtils.chat("§cSkyHanni ${SkyHanniMod.version} caught and logged an ${it::class.simpleName ?: "error"} at ${eventName}: ${it.message}")
}
}.getOrDefault(isCanceled)
}