Improve error msg when dev builds cannot be found.

Fixes #22.
This commit is contained in:
Fabio Niephaus 2022-11-18 10:14:55 +01:00
parent 2ada328403
commit a20b6434b3
No known key found for this signature in database
GPG Key ID: F21CF5275F31DFD6
2 changed files with 4 additions and 2 deletions

2
dist/main/index.js generated vendored
View File

@ -74738,7 +74738,7 @@ function setUpGraalVMDevBuild(gdsToken, javaVersion) {
return utils_1.downloadAndExtractJDK(asset.browser_download_url);
}
}
throw new Error('Could not find GraalVM dev build');
throw new Error(`Could not find GraalVM dev build for Java ${javaVersion}. It may no longer be available, so please consider upgrading the Java version. If you think this is a mistake, please file an issue at: https://github.com/graalvm/setup-graalvm/issues.`);
});
}
exports.setUpGraalVMDevBuild = setUpGraalVMDevBuild;

View File

@ -52,7 +52,9 @@ export async function setUpGraalVMDevBuild(
return downloadAndExtractJDK(asset.browser_download_url)
}
}
throw new Error('Could not find GraalVM dev build')
throw new Error(
`Could not find GraalVM dev build for Java ${javaVersion}. It may no longer be available, so please consider upgrading the Java version. If you think this is a mistake, please file an issue at: https://github.com/graalvm/setup-graalvm/issues.`
)
}
export async function setUpGraalVMRelease(