From 8a1c2c8f659a6f283fb83a0b088188426be6394d Mon Sep 17 00:00:00 2001 From: Gil Tene Date: Sat, 2 Nov 2019 18:08:59 -0700 Subject: [PATCH] Add optional java-package parameter --- lib/installer.js | 2 +- src/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/installer.js b/lib/installer.js index 4ab1f24a..9f0b6064 100644 --- a/lib/installer.js +++ b/lib/installer.js @@ -222,7 +222,7 @@ function getDownloadInfo(refs, version, javaPackage) { } } if (curUrl == '') { - throw new Error(`No valid download found for version ${version}. Check https://static.azul.com/zulu/bin/ for a list of valid versions or download your own jdk file and add the jdkFile argument`); + throw new Error(`No valid download found for version ${version} and package ${javaPackage}. Check https://static.azul.com/zulu/bin/ for a list of valid versions or download your own jdk file and add the jdkFile argument`); } return { version: curVersion, url: curUrl }; } diff --git a/src/installer.ts b/src/installer.ts index 8e5a239f..94e4d48e 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -244,7 +244,7 @@ function getDownloadInfo( if (curUrl == '') { throw new Error( - `No valid download found for version ${version}. Check https://static.azul.com/zulu/bin/ for a list of valid versions or download your own jdk file and add the jdkFile argument` + `No valid download found for version ${version} and package ${javaPackage}. Check https://static.azul.com/zulu/bin/ for a list of valid versions or download your own jdk file and add the jdkFile argument` ); }