From e693e5363034e88314b2a79a807dfb30cbac9e8d Mon Sep 17 00:00:00 2001 From: Jeremy Long Date: Sat, 12 Nov 2016 11:19:48 -0500 Subject: [PATCH] updated error message per issue #607 --- .../owasp/dependencycheck/analyzer/AssemblyAnalyzer.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/AssemblyAnalyzer.java b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/AssemblyAnalyzer.java index 86230e5ca..872e1484b 100644 --- a/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/AssemblyAnalyzer.java +++ b/dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/AssemblyAnalyzer.java @@ -178,7 +178,11 @@ public class AssemblyAnalyzer extends AbstractFileTypeAnalyzer { } catch (IOException ioe) { throw new AnalysisException(ioe); } catch (SAXException saxe) { - throw new AnalysisException("Couldn't parse GrokAssembly result", saxe); + LOGGER.error("----------------------------------------------------"); + LOGGER.error("Failed to read the Assembly Analyzer results. " + + "On some systems mono-runtime and mono-devel need to be installed."); + LOGGER.error("----------------------------------------------------"); + throw new AnalysisException("Couldn't parse Assembly Analzyzer results (GrokAssembly)", saxe); } catch (XPathExpressionException xpe) { // This shouldn't happen throw new AnalysisException(xpe); @@ -244,7 +248,8 @@ public class AssemblyAnalyzer extends AbstractFileTypeAnalyzer { LOGGER.error("----------------------------------------------------"); LOGGER.error(".NET Assembly Analyzer could not be initialized and at least one " + "'exe' or 'dll' was scanned. The 'mono' executable could not be found on " - + "the path; either disable the Assembly Analyzer or configure the path mono."); + + "the path; either disable the Assembly Analyzer or configure the path mono. " + + "On some systems mono-runtime and mono-devel need to be installed."); LOGGER.error("----------------------------------------------------"); return; }