Skip to content

Commit 0e5b04a

Browse files
authored
Merge pull request #1349 from github/henrymercer/improve-focus-when-init-fails
Improve experience when init fails before generating a config file
2 parents c606252 + f9948ff commit 0e5b04a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/init-action-post-helper.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action-post-helper.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init-action-post-helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export async function run(
1313

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

0 commit comments

Comments
 (0)