mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 09:26:46 +00:00
Enhanced the error message for semeru
This commit is contained in:
parent
ae113ef723
commit
7c6fe208f4
2 changed files with 2 additions and 2 deletions
2
dist/setup/index.js
vendored
2
dist/setup/index.js
vendored
|
@ -124976,7 +124976,7 @@ class SemeruDistribution extends base_installer_1.JavaBase {
|
||||||
const availableOptionsMessage = availableOptions
|
const availableOptionsMessage = availableOptions
|
||||||
? `\nAvailable versions: ${availableOptions}`
|
? `\nAvailable versions: ${availableOptions}`
|
||||||
: '';
|
: '';
|
||||||
throw new Error(`Could not find satisfied version for SemVer '${version}'. on your current OS version for ${arch} ${availableOptionsMessage}`);
|
throw new Error(`Could not find satisfied version for SemVer '${version}' on your current OS version for ${this.architecture} ${availableOptionsMessage}`);
|
||||||
}
|
}
|
||||||
return resolvedFullVersion;
|
return resolvedFullVersion;
|
||||||
});
|
});
|
||||||
|
|
|
@ -82,7 +82,7 @@ export class SemeruDistribution extends JavaBase {
|
||||||
? `\nAvailable versions: ${availableOptions}`
|
? `\nAvailable versions: ${availableOptions}`
|
||||||
: '';
|
: '';
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Could not find satisfied version for SemVer '${version}'. on your current OS version for ${this.architecture} ${availableOptionsMessage}`
|
`Could not find satisfied version for SemVer '${version}' on your current OS version for ${this.architecture} ${availableOptionsMessage}`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue