Skip to content

Commit

Permalink
feat: use a crash report for the duplicated skytils check
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Apr 14, 2024
1 parent 83b0ca6 commit 9df2de8
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package gg.skytils.skytilsmod.tweaker;

import com.google.common.collect.Sets;
import gg.skytils.earlytweaker.utils.Utils;
import sun.misc.CompoundEnumeration;

import java.io.IOException;
Expand All @@ -40,7 +41,8 @@ public static void checkForDuplicates() throws IOException {
files.add(url.toString());
}
if (files.size() > 1) {
throw new RuntimeException("Duplicate Skytils classes found! Remove the duplicate jar files and try again.\n" + files);
String message = "Duplicate Skytils classes found! Remove the duplicate jar files and try again.\n" + files;
Utils.makeCrashReport(new RuntimeException(message), "Duplicate Skytils classes found!");
}
}
}

0 comments on commit 9df2de8

Please sign in to comment.