Skip to content

Commit

Permalink
Merge pull request #1790 from github/henrymercer/aborted-user-error
Browse files Browse the repository at this point in the history
Report user errors in the abort stage appropriately
  • Loading branch information
henrymercer committed Jul 18, 2023
2 parents d2ed0a0 + 0cae69e commit 6ae46f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/init-action.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.js.map

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

3 changes: 2 additions & 1 deletion src/init-action.ts
Expand Up @@ -40,6 +40,7 @@ import {
getThreadsFlagValue,
initializeEnvironment,
isHostedRunner,
UserError,
wrapError,
} from "./util";
import { validateWorkflow } from "./workflow";
Expand Down Expand Up @@ -302,7 +303,7 @@ async function run() {
await sendStatusReport(
await createStatusReportBase(
"init",
"aborted",
error instanceof UserError ? "user-error" : "aborted",
startedAt,
error.message,
error.stack
Expand Down

0 comments on commit 6ae46f7

Please sign in to comment.