From 549969ade65fcc3421569cd3a75533b41d1a45c7 Mon Sep 17 00:00:00 2001 From: Christian Date: Fri, 17 Aug 2012 09:11:41 -0400 Subject: [PATCH] And log the exception if it has a problem reading the jar file --- fml/common/cpw/mods/fml/common/discovery/JarDiscoverer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fml/common/cpw/mods/fml/common/discovery/JarDiscoverer.java b/fml/common/cpw/mods/fml/common/discovery/JarDiscoverer.java index 97c62f13fa..f5105553e2 100644 --- a/fml/common/cpw/mods/fml/common/discovery/JarDiscoverer.java +++ b/fml/common/cpw/mods/fml/common/discovery/JarDiscoverer.java @@ -2,6 +2,7 @@ package cpw.mods.fml.common.discovery; import java.util.Collections; import java.util.List; +import java.util.logging.Level; import java.util.regex.Matcher; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -58,7 +59,7 @@ public class JarDiscoverer implements ITypeDiscoverer } 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 {