Merge pull request #644 from oosterholt/master

Add troubling JAR file name to the exception when JAR reading errors occur
This commit is contained in:
Jeremy Long
2017-01-21 06:21:18 -05:00
committed by GitHub

View File

@@ -243,7 +243,7 @@ public class JarAnalyzer extends AbstractFileTypeAnalyzer {
final boolean addPackagesAsEvidence = !(hasManifest && hasPOM);
analyzePackageNames(classNames, dependency, addPackagesAsEvidence);
} catch (IOException ex) {
throw new AnalysisException("Exception occurred reading the JAR file.", ex);
throw new AnalysisException("Exception occurred reading the JAR file (" + dependency.getFileName() +").", ex);
}
}