Skip to content

Commit 6ae46f7

Browse files
authored
Merge pull request #1790 from github/henrymercer/aborted-user-error
Report user errors in the abort stage appropriately
2 parents d2ed0a0 + 0cae69e commit 6ae46f7

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/init-action.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.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.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import {
4040
getThreadsFlagValue,
4141
initializeEnvironment,
4242
isHostedRunner,
43+
UserError,
4344
wrapError,
4445
} from "./util";
4546
import { validateWorkflow } from "./workflow";
@@ -302,7 +303,7 @@ async function run() {
302303
await sendStatusReport(
303304
await createStatusReportBase(
304305
"init",
305-
"aborted",
306+
error instanceof UserError ? "user-error" : "aborted",
306307
startedAt,
307308
error.message,
308309
error.stack

0 commit comments

Comments
 (0)