improve error message when config is not found
This commit is contained in:
parent
37bac22443
commit
80e2c4fe4a
12 changed files with 39 additions and 19 deletions
|
|
@ -32,6 +32,9 @@ async function run() {
|
|||
}
|
||||
const logger = getActionsLogger();
|
||||
const config = await getConfig(util.getRequiredEnvParam('RUNNER_TEMP'), logger);
|
||||
if (config === undefined) {
|
||||
throw new Error("Config file could not be found at expected location. Has the 'init' action been called?");
|
||||
}
|
||||
stats = await runAnalyze(
|
||||
parseRepositoryNwo(util.getRequiredEnvParam('GITHUB_REPOSITORY')),
|
||||
await util.getCommitOid(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue