Report when kotlin is missing or outdated

This commit is contained in:
DBotThePony 2022-11-06 13:00:56 +07:00
parent 94097d428d
commit 5ab1f1806a
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -101,14 +101,17 @@ public final class OverdriveThatMatters {
checkIfKotlinIsInstalled(); checkIfKotlinIsInstalled();
} catch (Throwable err) { } catch (Throwable err) {
if (err instanceof NoClassDefFoundError) { if (err instanceof NoClassDefFoundError) {
for (int i = 0; i < 8; i++) for (int i = 0; i < 16; i++)
LOGGER.fatal("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");
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++) for (int i = 0; i < 16; i++)
LOGGER.fatal("Overdrive That Matters' Kotlin version is not satisfied", err); 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; throw err;
} }