mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Wrap JSON parse errors in resolveExtractor with context
This commit is contained in:
9
lib/entry-points.js
generated
9
lib/entry-points.js
generated
@@ -153261,7 +153261,14 @@ async function getCodeQLForCmd(logger, cmd, checkVersion) {
|
||||
}
|
||||
}
|
||||
).exec();
|
||||
return JSON.parse(extractorPath);
|
||||
try {
|
||||
return JSON.parse(extractorPath);
|
||||
} catch (err) {
|
||||
throw new Error(
|
||||
`Failed to parse extractor path for '${language}' from CLI: ${getErrorMessage(err)}
|
||||
Output was: ${extractorPath}`
|
||||
);
|
||||
}
|
||||
},
|
||||
async resolveQueriesStartingPacks(queries) {
|
||||
const codeqlArgs = [
|
||||
|
||||
Reference in New Issue
Block a user