Skip to content

Commit

Permalink
Merge pull request #1349 from github/henrymercer/improve-focus-when-i…
Browse files Browse the repository at this point in the history
…nit-fails

Improve experience when init fails before generating a config file
  • Loading branch information
henrymercer authored Nov 8, 2022
2 parents c606252 + f9948ff commit 0e5b04a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/init-action-post-helper.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/init-action-post-helper.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/init-action-post-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export async function run(

const config = await getConfig(actionsUtil.getTemporaryDirectory(), logger);
if (config === undefined) {
throw new Error(
"Config file could not be found at expected location. Did the 'init' action fail to start?"
logger.warning(
"Debugging artifacts are unavailable since the 'init' Action failed before it could produce any."
);
}

Expand Down

0 comments on commit 0e5b04a

Please sign in to comment.