Skip to content

Commit 5fa6bd2

Browse files
committed
Update autobuild and analysis path error messages.
1 parent 278f870 commit 5fa6bd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analysis-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ export function includeAndExcludeAnalysisPaths(config: configUtils.Config, langu
5353
config.pathsIgnore.length !== 0 ||
5454
filters.length !== 0) &&
5555
!languages.every(isInterpretedLanguage)) {
56-
core.warning('The "paths"/"paths-ignore" fields of the config only have effect for Javascript and Python');
56+
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. );
5757
}
5858
}

src/autobuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function run() {
3535
core.endGroup();
3636

3737
} catch (error) {
38-
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);
38+
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);
3939
await util.reportActionFailed('autobuild', error.message, error.stack);
4040
return;
4141
}

0 commit comments

Comments
 (0)