Add an error condition for an unstable Microsoft OpenJDK build (#263)
This commit is contained in:
		
							
								
								
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								dist/setup/index.js
									
									
									
									
										vendored
									
									
								
							| @ -13886,6 +13886,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { | ||||
|             if (this.architecture !== 'x64' && this.architecture !== 'aarch64') { | ||||
|                 throw new Error(`Unsupported architecture: ${this.architecture}`); | ||||
|             } | ||||
|             if (!this.stable) { | ||||
|                 throw new Error('Early access versions are not supported'); | ||||
|             } | ||||
|             const availableVersionsRaw = yield this.getAvailableVersions(); | ||||
|             const opts = this.getPlatformOption(); | ||||
|             const availableVersions = availableVersionsRaw.map(item => ({ | ||||
|  | ||||
| @ -40,6 +40,11 @@ export class MicrosoftDistributions extends JavaBase { | ||||
|     if (this.architecture !== 'x64' && this.architecture !== 'aarch64') { | ||||
|       throw new Error(`Unsupported architecture: ${this.architecture}`); | ||||
|     } | ||||
|  | ||||
|     if (!this.stable) { | ||||
|       throw new Error('Early access versions are not supported'); | ||||
|     } | ||||
|  | ||||
|     const availableVersionsRaw = await this.getAvailableVersions(); | ||||
|  | ||||
|     const opts = this.getPlatformOption(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
					Dmitry Shibanov