diff --git a/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java b/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java index 2c201bb..5359565 100644 --- a/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java +++ b/src/main/java/me/itzg/helpers/curseforge/CurseForgeInstaller.java @@ -7,6 +7,7 @@ import static me.itzg.helpers.curseforge.CurseForgeApiClient.modFileDownloadStatusHandler; import static me.itzg.helpers.singles.MoreCollections.safeStreamFrom; +import com.fasterxml.jackson.databind.JsonMappingException; import java.io.File; import java.io.IOException; import java.io.InputStream; @@ -983,6 +984,8 @@ private MinecraftModpackManifest extractModpackManifest(Path modpackZip) throws if (entry != null) { try (InputStream in = zipFile.getInputStream(entry)) { return ObjectMappers.defaultMapper().readValue(in, MinecraftModpackManifest.class); + } catch (JsonMappingException e) { + throw new InvalidParameterException("The modpack's manifest file was not valid -- did you make sure to reference a client, not server, file?", e); } } }