Address comments from review

This commit is contained in:
Andrew Eisenberg 2022-10-06 13:14:06 -07:00
parent 6de05e4b24
commit 5915e70486
6 changed files with 7 additions and 9 deletions

2
lib/feature-flags.js generated
View file

@ -73,7 +73,7 @@ class GitHubFeatureFlags {
*/
async getValue(flag, codeql) {
if (!codeql && exports.featureConfig[flag].minimumVersion) {
throw new Error(`A minimum version is specified for feature flag ${flag}, but no instance of CodeQL was provided.`);
throw new Error(`Internal error: A minimum version is specified for feature flag ${flag}, but no instance of CodeQL was provided.`);
}
// Bypassing the toolcache is disabled in test mode.
if (flag === Feature.BypassToolcacheEnabled && util.isInTestMode()) {