chore: cleanup.

This commit is contained in:
huanghongxun
2021-09-18 15:48:50 +08:00
parent 5b4185840f
commit 3513c1a431
2 changed files with 2 additions and 3 deletions

View File

@@ -55,7 +55,6 @@ public final class ModpackHelper {
try { try {
return McbbsModpackManifest.readManifest(file, charset); return McbbsModpackManifest.readManifest(file, charset);
} catch (Exception ignored) { } catch (Exception ignored) {
ignored.printStackTrace();
// ignore it, not a valid MCBBS modpack. // ignore it, not a valid MCBBS modpack.
} }

View File

@@ -434,7 +434,7 @@ public class McbbsModpackManifest implements Validation {
} }
/** /**
* @param zip the CurseForge modpack file. * @param zip the MCBBS modpack file.
* @param encoding the modpack zip file encoding. * @param encoding the modpack zip file encoding.
* @throws IOException if the file is not a valid zip file. * @throws IOException if the file is not a valid zip file.
* @throws JsonParseException if the server-manifest.json is missing or malformed. * @throws JsonParseException if the server-manifest.json is missing or malformed.
@@ -450,7 +450,7 @@ public class McbbsModpackManifest implements Validation {
if (Files.exists(manifestJson)) { if (Files.exists(manifestJson)) {
return fromManifestFile(manifestJson, encoding); return fromManifestFile(manifestJson, encoding);
} }
throw new IOException("`mcbbs.packmeta` or `manifest.json` cannot be found, " + zip + " is not a valid MCBBS modpack"); throw new IOException("`mcbbs.packmeta` or `manifest.json` cannot be found");
} }
} }
} }