From 5fa6bd262238705a7871a94c5a81b6b6e31e5e78 Mon Sep 17 00:00:00 2001 From: jhutchings1 Date: Sat, 11 Jul 2020 11:45:36 -0700 Subject: [PATCH] Update autobuild and analysis path error messages. --- src/analysis-paths.ts | 2 +- src/autobuild.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/analysis-paths.ts b/src/analysis-paths.ts index 57d3d38d1..820842d05 100644 --- a/src/analysis-paths.ts +++ b/src/analysis-paths.ts @@ -53,6 +53,6 @@ export function includeAndExcludeAnalysisPaths(config: configUtils.Config, langu config.pathsIgnore.length !== 0 || filters.length !== 0) && !languages.every(isInterpretedLanguage)) { - core.warning('The "paths"/"paths-ignore" fields of the config only have effect for Javascript and Python'); + core.warning('The "paths"/"paths-ignore" fields of the configuration only effect Javascript and Python analysis. [Learn more](https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#specifying-directories-to-scan) about modifying the directories to scan. ); } } diff --git a/src/autobuild.ts b/src/autobuild.ts index ee2c753ce..3713ac277 100644 --- a/src/autobuild.ts +++ b/src/autobuild.ts @@ -35,7 +35,7 @@ async function run() { core.endGroup(); } catch (error) { - core.setFailed("We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. " + error.message); + core.setFailed(`We were unable to automatically build your ${language} code. Please replace the call to the autobuild action with your custom build steps. \n` + error.message); await util.reportActionFailed('autobuild', error.message, error.stack); return; }