Minor change: When JAR reading errors occur, at least add the file name

to the exception. Without it, finding the troubling JAR is hard.
This commit is contained in:
Rick Oosterholt
2017-01-18 13:52:17 +01:00
parent baa2e2c6ff
commit df8d4fd77c

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);
}
}