Add help URL to languages error

This commit is contained in:
jhutchings1
2020-07-11 11:40:35 -07:00
parent c3dcf26eaf
commit 278f870907
+2 -2
View File
@@ -148,7 +148,7 @@ async function run() {
// If the languages parameter was not given and no languages were
// detected then fail here as this is a workflow configuration error.
if (languages.length === 0) {
throw new Error("Did not detect any languages to analyze. Please update input in workflow.");
throw new Error("Did not detect any languages to analyze. Please [update the languages property](https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection) in your workflow definition.");
}
analysisPaths.includeAndExcludeAnalysisPaths(config, languages);
@@ -243,6 +243,6 @@ async function run() {
}
run().catch(e => {
core.setFailed("init action failed: " + e);
core.setFailed("Init action failed: " + e);
console.log(e);
});