And log the exception if it has a problem reading the jar file

This commit is contained in:
Christian committed 2012-08-17 09:25:04 -04:00
1 parent 07cc3fb2d9
commit 10c96c394d
1 file changed
+2 -1
@@ -2,6 +2,7 @@ package cpw.mods.fml.common.discovery;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.logging.Level;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.zip.ZipEntry; import java.util.zip.ZipEntry;
import java.util.zip.ZipFile; import java.util.zip.ZipFile;
@@ -58,7 +59,7 @@ public class JarDiscoverer implements ITypeDiscoverer
} }
catch (Exception e) catch (Exception e)
{ {
FMLLog.warning("Zip file %s failed to read properly, it will be ignored", candidate.getModContainer().getName()); FMLLog.log(Level.WARNING, e, "Zip file %s failed to read properly, it will be ignored", candidate.getModContainer().getName());
} }
finally finally
{ {