mirror of
https://github.com/github/codeql-action.git
synced 2026-04-17 20:43:17 +00:00
Address comments
This commit is contained in:
@@ -674,7 +674,13 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
||||
},
|
||||
}).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: string[],
|
||||
@@ -699,7 +705,11 @@ function getCodeQLForCmd(cmd: string): CodeQL {
|
||||
},
|
||||
}).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: string,
|
||||
|
||||
Reference in New Issue
Block a user