Skip to content

Commit c9878c4

Browse files
authored
fix: log GrokAssembly output when dotnet invocation fails (#8141)
2 parents 13384b5 + 84e553d commit c9878c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public void prepareFileTypeAnalyzer(Engine engine) throws InitializationExceptio
373373
if (p.exitValue() != 1 || !StringUtils.isBlank(error)) {
374374
LOGGER.warn("An error occurred with the .NET AssemblyAnalyzer, please see the log for more details.\n"
375375
+ "dependency-check requires dotnet 8.0 core runtime or sdk to be installed to analyze assemblies.");
376-
LOGGER.debug("GrokAssembly.dll is not working properly");
376+
LOGGER.debug("GrokAssembly.dll is not working properly: {}", error);
377377
grokAssembly = null;
378378
setEnabled(false);
379379
throw new InitializationException("Could not execute .NET AssemblyAnalyzer, is the dotnet 8.0 runtime or sdk installed?");

0 commit comments

Comments
 (0)