File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
core/src/main/java/org/owasp/dependencycheck/analyzer Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ private boolean isNodeAuditEnabled(Engine engine) {
196196 try {
197197 ((AbstractNpmAnalyzer ) a ).prepareFileTypeAnalyzer (engine );
198198 } catch (InitializationException ex ) {
199- LOGGER .debug ("Error initializing the {}" , a .getName ());
199+ String message = "Error initializing the " + a .getName ();
200+ LOGGER .debug (message , ex );
200201 }
201202 }
202203 return a .isEnabled ();
Original file line number Diff line number Diff line change @@ -188,12 +188,14 @@ protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationExcep
188188 case yarnExecutableNotFoundExitValue :
189189 default :
190190 this .setEnabled (false );
191- LOGGER .warn ("The {} has been disabled. Yarn executable was not found." , getName ());
191+ LOGGER .warn ("The {} has been disabled after receiving exit value {}. Yarn executable was not " +
192+ "found or received a non-zero exit value." , getName (), exitValue );
192193 }
193194 }
194195 } catch (Exception ex ) {
195196 this .setEnabled (false );
196- LOGGER .warn ("The {} has been disabled. Yarn executable was not found." , getName ());
197+ LOGGER .warn ("The {} has been disabled after receiving an exception. This can occur when Yarn executable " +
198+ "is not found." , getName ());
197199 throw new InitializationException ("Unable to read yarn audit output." , ex );
198200 }
199201 }
You can’t perform that action at this time.
0 commit comments