Skip to content

Commit c14f0e2

Browse files
committed
fix: provide slightly more detailed message for all errors
1 parent ef7b4db commit c14f0e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/java/org/owasp/dependencycheck/analyzer/OssIndexAnalyzer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,10 +182,10 @@ protected void analyzeDependency(final Dependency dependency, final Engine engin
182182
throw new AnalysisException("OSS Index rate limit exceeded, disabling the analyzer", ex);
183183
}
184184
} else if (warnOnly) {
185-
LOG.warn("Error requesting component reports, disabling the analyzer", ex);
185+
LOG.warn("Error requesting component reports, disabling the analyzer. " + ex.getMessage(), ex);
186186
} else {
187187
LOG.debug("Error requesting component reports, disabling the analyzer", ex);
188-
throw new AnalysisException("Failed to request component-reports", ex);
188+
throw new AnalysisException("Failed to request component-reports. " + ex.getMessage(), ex);
189189
}
190190
}
191191
}

0 commit comments

Comments
 (0)