diff --git a/src/main/java/com/redhat/exhort/utils/PythonControllerBase.java b/src/main/java/com/redhat/exhort/utils/PythonControllerBase.java index fc625e5..da28cdc 100644 --- a/src/main/java/com/redhat/exhort/utils/PythonControllerBase.java +++ b/src/main/java/com/redhat/exhort/utils/PythonControllerBase.java @@ -360,7 +360,7 @@ List getDependencyTreeJsonFromPipDepTree() { return mapToPythonDependencies(pipdeptreeJsonString); } - public static List mapToPythonDependencies(String jsonString) { + List mapToPythonDependencies(String jsonString) { try { // Parse JSON and store in a list of JsonNodes List jsonNodeList = new ArrayList<>(); @@ -384,7 +384,8 @@ public static List mapToPythonDependencies(String jsonString) }) .collect(Collectors.toList()); } catch (JsonProcessingException e) { - throw new RuntimeException(e); + throw new RuntimeException( + "Could not parse the JSON output from 'pipdeptree --json' command. ", e); } }