From f2c8606b17586b51dc7137c788fe97c029bd4561 Mon Sep 17 00:00:00 2001 From: jhutchings1 Date: Sat, 11 Jul 2020 12:18:01 -0700 Subject: [PATCH] Add debug statements --- src/finalize-db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/finalize-db.ts b/src/finalize-db.ts index ecb52af42..542b19c1b 100644 --- a/src/finalize-db.ts +++ b/src/finalize-db.ts @@ -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); }