Skip to content

Commit 278f870

Browse files
committed
Add help URL to languages error
1 parent c3dcf26 commit 278f870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/setup-tracer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ async function run() {
148148
// If the languages parameter was not given and no languages were
149149
// detected then fail here as this is a workflow configuration error.
150150
if (languages.length === 0) {
151-
throw new Error("Did not detect any languages to analyze. Please update input in workflow.");
151+
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.");
152152
}
153153

154154
analysisPaths.includeAndExcludeAnalysisPaths(config, languages);
@@ -243,6 +243,6 @@ async function run() {
243243
}
244244

245245
run().catch(e => {
246-
core.setFailed("init action failed: " + e);
246+
core.setFailed("Init action failed: " + e);
247247
console.log(e);
248248
});

0 commit comments

Comments
 (0)