diff --git a/dist/main/index.js b/dist/main/index.js index aee5893..bd7c909 100644 Binary files a/dist/main/index.js and b/dist/main/index.js differ diff --git a/src/gds.ts b/src/gds.ts index 509e4ba..7b60647 100644 --- a/src/gds.ts +++ b/src/gds.ts @@ -70,7 +70,11 @@ export async function fetchArtifact( await response.readBody() ) as GDSArtifactsResponse if (artifactResponse.items.length !== 1) { - throw new Error(`Found more than one GDS artifact`) + throw new Error( + artifactResponse.items.length > 1 + ? `Found more than one GDS artifact. ${c.ERROR_HINT}` + : `Unable to find GDS artifact. Are you sure version: '${version}' is correct?` + ) } return artifactResponse.items[0] } diff --git a/src/graalvm.ts b/src/graalvm.ts index 70c2933..6c18afd 100644 --- a/src/graalvm.ts +++ b/src/graalvm.ts @@ -164,7 +164,7 @@ export async function setUpGraalVMLatest_22_X( gdsToken: string, javaVersion: string ): Promise { - const lockedVersion = '22.3.2' + const lockedVersion = javaVersion === '19' ? '22.3.1' : '22.3.2' if (gdsToken.length > 0) { return setUpGraalVMRelease(gdsToken, lockedVersion, javaVersion) }