chore: fix typos, add additional logs

This commit is contained in:
Ivan Zosimov 2023-09-19 11:53:33 +02:00
parent b93179bb91
commit 4f1c6f6018
2 changed files with 9 additions and 4 deletions

5
dist/setup/index.js vendored
View File

@ -102688,8 +102688,9 @@ class DragonwellDistribution extends base_installer_1.JavaBase {
fetchedDragonwellJson = yield this.fetchJsonFromBackupUrl();
}
if (!fetchedDragonwellJson) {
throw new Error(`Couldn't fetch any dragonwell versions from both primary and backup urls`);
throw new Error(`Couldn't fetch dragonwell versions information from both primary and backup urls`);
}
core.debug('Successfully fetched information about available dragonwell versions');
const availableVersions = this.parseVersions(platform, arch, fetchedDragonwellJson);
if (core.isDebug()) {
core.startGroup('Print information about available versions');
@ -102777,7 +102778,7 @@ class DragonwellDistribution extends base_installer_1.JavaBase {
}
fetchJsonFromPrimaryUrl() {
return __awaiter(this, void 0, void 0, function* () {
const primaryUrl = 'https://dragonwell-jjk.io/map_with_checksum.json';
const primaryUrl = 'https://dragonwell-jdk.io/map_with_checksum.json';
try {
core.debug(`Trying to fetch available versions info from the primary url: ${primaryUrl}`);
const fetchedDragonwellJson = (yield this.http.getJson(primaryUrl)).result;

View File

@ -70,10 +70,14 @@ export class DragonwellDistribution extends JavaBase {
if (!fetchedDragonwellJson) {
throw new Error(
`Couldn't fetch any dragonwell versions from both primary and backup urls`
`Couldn't fetch dragonwell versions information from both primary and backup urls`
);
}
core.debug(
'Successfully fetched information about available dragonwell versions'
);
const availableVersions = this.parseVersions(
platform,
arch,
@ -197,7 +201,7 @@ export class DragonwellDistribution extends JavaBase {
}
private async fetchJsonFromPrimaryUrl(): Promise<IDragonwellAllVersions | null> {
const primaryUrl = 'https://dragonwell-jjk.io/map_with_checksum.json';
const primaryUrl = 'https://dragonwell-jdk.io/map_with_checksum.json';
try {
core.debug(
`Trying to fetch available versions info from the primary url: ${primaryUrl}`