Skip to content

Commit

Permalink
Report user errors in the abort stage appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
henrymercer committed Jul 18, 2023
1 parent d2ed0a0 commit 0cae69e
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
Original file line number Diff line number Diff line change
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 0cae69e

Please sign in to comment.