Skip to content

Commit d4393e4

Browse files
Strum355claude
andcommitted
fix: include stderr in Gradle init script failure warning
Log the error output alongside the exit code when gradle daListProjects fails, so the root cause is visible without rerunning manually. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 98d4354 commit d4393e4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/main/java/io/github/guacsec/trustifyda/impl/ExhortApi.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,11 @@ private List<Path> discoverGradleSubprojects(Path workspaceDir, Set<String> igno
10021002
null);
10031003

10041004
if (output.getExitCode() != 0) {
1005-
LOG.warning("gradle daListProjects failed with exit code " + output.getExitCode());
1005+
LOG.warning(
1006+
"gradle daListProjects failed with exit code "
1007+
+ output.getExitCode()
1008+
+ ": "
1009+
+ output.getErrorOutput());
10061010
return WorkspaceUtils.filterByIgnorePatterns(workspaceDir, manifestPaths, ignorePatterns);
10071011
}
10081012

0 commit comments

Comments
 (0)