mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 14:20:19 +00:00
Add debug statements
This commit is contained in:
+2
-1
@@ -131,8 +131,9 @@ async function runQueries(databaseFolder: string, sarifFolder: string, config: c
|
||||
try {
|
||||
await codeql.databaseAnalyze(path.join(databaseFolder, database), sarifFile, querySuite);
|
||||
} catch (analysisError) {
|
||||
core.debug(analysisError.message);
|
||||
if (analysisError.message.contains("exit code 32")) {
|
||||
throw new Error('Unable to analyze ' + database + ' because CodeQL was unable to detect any code for that language. \n [Learn more](https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning) about how to troubleshoot this error. ')
|
||||
throw new Error('Unable to analyze ' + database + ' because CodeQL was unable to detect any code for that language. \n [Learn more](https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning) about how to troubleshoot this error. ');
|
||||
} else {
|
||||
throw new Error(analysisError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user