Skip to content

Commit 066d971

Browse files
committed
Fix issue with error detection
1 parent 642850b commit 066d971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/finalize-db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ async function runQueries(databaseFolder: string, sarifFolder: string, config: c
131131
try {
132132
await codeql.databaseAnalyze(path.join(databaseFolder, database), sarifFile, querySuite);
133133
} catch (analysisError) {
134-
if (analysisError.contains("exit code 32")) {
134+
if (analysisError.message.contains("exit code 32")) {
135135
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. ')
136136
} else {
137137
throw new Error(analysisError);

0 commit comments

Comments
 (0)