mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
Add error handling for undefined extractors in language resolution
This commit is contained in:
8
lib/entry-points.js
generated
8
lib/entry-points.js
generated
@@ -154094,7 +154094,13 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
||||
},
|
||||
async resolveExtractor(language) {
|
||||
const output = await this.resolveLanguages();
|
||||
return output.extractors[language][0].extractor_root;
|
||||
const extractors = output.extractors[language];
|
||||
if (extractors === void 0) {
|
||||
throw new Error(
|
||||
`Unable to resolve an extractor for the language '${language}'.`
|
||||
);
|
||||
}
|
||||
return extractors[0].extractor_root;
|
||||
},
|
||||
async resolveQueriesStartingPacks(queries) {
|
||||
const codeqlArgs = [
|
||||
|
||||
Reference in New Issue
Block a user