From 5ab1f1806a658708e4dde5458f14ad6c4dd65dc0 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 6 Nov 2022 13:00:56 +0700 Subject: [PATCH] Report when kotlin is missing or outdated --- .../ru/dbotthepony/mc/otm/OverdriveThatMatters.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/ru/dbotthepony/mc/otm/OverdriveThatMatters.java b/src/main/java/ru/dbotthepony/mc/otm/OverdriveThatMatters.java index b825e4799..98b613624 100644 --- a/src/main/java/ru/dbotthepony/mc/otm/OverdriveThatMatters.java +++ b/src/main/java/ru/dbotthepony/mc/otm/OverdriveThatMatters.java @@ -101,14 +101,17 @@ public final class OverdriveThatMatters { checkIfKotlinIsInstalled(); } catch (Throwable err) { if (err instanceof NoClassDefFoundError) { - for (int i = 0; i < 8; i++) - LOGGER.fatal("Overdrive That Matters requires Kotlin to be installed"); + for (int i = 0; i < 16; i++) + LOGGER.fatal("Overdrive That Matters requires Kotlin to be installed, get Kotlin for Forge from https://github.com/thedarkcolour/KotlinForForge"); - throw new RuntimeException("Overdrive That Matters requires Kotlin to be installed"); + LOGGER.fatal("Overdrive That Matters requires Kotlin to be installed, get Kotlin for Forge from https://github.com/thedarkcolour/KotlinForForge", err); + throw new RuntimeException("Overdrive That Matters requires Kotlin to be installed, get Kotlin for Forge from https://github.com/thedarkcolour/KotlinForForge"); } - for (int i = 0; i < 8; i++) - LOGGER.fatal("Overdrive That Matters' Kotlin version is not satisfied", err); + for (int i = 0; i < 16; i++) + LOGGER.fatal("Overdrive That Matters' Kotlin version is not satisfied, get newer Kotlin for Forge from https://github.com/thedarkcolour/KotlinForForge"); + + LOGGER.fatal("Overdrive That Matters' Kotlin version is not satisfied, get newer Kotlin for Forge from https://github.com/thedarkcolour/KotlinForForge", err); throw err; }