Address comments
This commit is contained in:
parent
4f51b8c47e
commit
44c6b33642
3 changed files with 25 additions and 5 deletions
14
lib/codeql.js
generated
14
lib/codeql.js
generated
|
|
@ -429,7 +429,12 @@ function getCodeQLForCmd(cmd) {
|
|||
},
|
||||
},
|
||||
}).exec();
|
||||
return JSON.parse(output);
|
||||
try {
|
||||
return JSON.parse(output);
|
||||
}
|
||||
catch (e) {
|
||||
throw new Error(`Unexpected output from codeql resolve languages: ${e}`);
|
||||
}
|
||||
},
|
||||
async resolveQueries(queries, extraSearchPath) {
|
||||
const codeqlArgs = [
|
||||
|
|
@ -450,7 +455,12 @@ function getCodeQLForCmd(cmd) {
|
|||
},
|
||||
},
|
||||
}).exec();
|
||||
return JSON.parse(output);
|
||||
try {
|
||||
return JSON.parse(output);
|
||||
}
|
||||
catch (e) {
|
||||
throw new Error(`Unexpected output from codeql resolve queries: ${e}`);
|
||||
}
|
||||
},
|
||||
async databaseAnalyze(databasePath, sarifFile, extraSearchPath, querySuite, memoryFlag, addSnippetsFlag, threadsFlag, automationDetailsId) {
|
||||
const args = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue