You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clean up displaying errors when fetching build scans
Previously, if a build scan failed to fetch, then the error would be printed on
the same line as the "Fetching build scan data" line, which was messy and
harder to read. Now, error messages are gaurenteed to be on their own newline.
Before:
```
Fetching build scan dataERROR: Failed to authenticate while attempting to fetch build scan https://example.com/s/jfg3vjxcgr3t2.
ERROR: Failed to authenticate while attempting to fetch build scan https://example.com/s/wn43gciypu5j4.
, done.
```
After:
```
Fetching build scan data
ERROR: Failed to authenticate while attempting to fetch build scan https://example.com/s/sn6yisoolyoeu.
ERROR: Failed to authenticate while attempting to fetch build scan https://example.com/s/v4q6wqny4rvvm.
done.
```
Copy file name to clipboardExpand all lines: components/fetch-build-scan-data-cmdline-tool/src/main/java/com/gradle/enterprise/cli/FetchBuildValidationDataCommand.java
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ public static class ExitCode {
54
54
@Option(names = {"--brief-logging"}, description = "Only log a short message about fetching build scan data and when it completes.")
55
55
privatebooleanbriefLogging;
56
56
57
+
privatebooleansomeScansFailedToFetch = false;
58
+
57
59
@Override
58
60
publicIntegercall() throwsException {
59
61
// Use System.err for logging since we're going to write out the CSV to System.out
logger.info("Looking up %s from custom value with name '%s' from the %s build scan, %s.%n", property, customValueKey, ordinal, found ? "found": "not found");
229
+
logger.info("Looking up %s from custom value with name '%s' from the %s build scan, %s.", property, customValueKey, ordinal, found ? "found": "not found");
0 commit comments