Skip to content

Commit 5478952

Browse files
committed
Fine-tune error messages
1 parent 54e8ddc commit 5478952

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/fetch-build-scan-data-cmdline-tool/src/main/java/com/gradle/enterprise/api/client/FailedRequestException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ private static String buildMessage(URL buildScanUrl, int code) {
2727
switch (code) {
2828
case 404:
2929
return String.format("Build scan %s was not found.%nVerify the build scan exists and you have been " +
30-
"granted the permission 'Access build data via the Export API'.", buildScanUrl);
30+
"granted the permission 'Access build data via the API'.", buildScanUrl);
3131
case 401:
32-
return String.format("Failed to authenticate while attempting to fetch build scan %s.", buildScanUrl);
32+
return String.format("Failed to authenticate while attempting to fetch build scan %s", buildScanUrl);
3333
case 0:
34-
return String.format("Unable to connect to server in order to fetch build scan %s.", buildScanUrl);
34+
return String.format("Unable to connect to server to fetch build scan %s", buildScanUrl);
3535
default:
36-
return String.format("Encountered an unexpected response while fetching build scan %s.", buildScanUrl);
36+
return String.format("Encountered an unexpected response while fetching build scan %s", buildScanUrl);
3737
}
3838
}
3939
}

0 commit comments

Comments
 (0)