From 278f870907380e300ab8a8b3e56d125d17a76bb8 Mon Sep 17 00:00:00 2001 From: jhutchings1 Date: Sat, 11 Jul 2020 11:40:35 -0700 Subject: [PATCH] Add help URL to languages error --- src/setup-tracer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index b18a3c539..45db43d0c 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -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); });