throw error for non jdk package type

This commit is contained in:
Dmitry Shibanov 2021-12-16 15:59:53 +03:00
parent d23aed3c80
commit 0b802aad9c
3 changed files with 18 additions and 0 deletions

3
dist/setup/index.js vendored
View file

@ -13889,6 +13889,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
if (!this.stable) {
throw new Error('Early access versions are not supported');
}
if (this.packageType !== 'jdk') {
throw new Error(`${this.packageType} versions are not supported`);
}
const availableVersionsRaw = yield this.getAvailableVersions();
const opts = this.getPlatformOption();
const availableVersions = availableVersionsRaw.map(item => ({