Report user errors in the abort stage appropriately

This commit is contained in:
Henry Mercer 2023-07-18 17:22:13 +01:00
parent d2ed0a05b6
commit 0cae69e062
3 changed files with 4 additions and 3 deletions

View file

@ -40,6 +40,7 @@ import {
getThreadsFlagValue,
initializeEnvironment,
isHostedRunner,
UserError,
wrapError,
} from "./util";
import { validateWorkflow } from "./workflow";
@ -302,7 +303,7 @@ async function run() {
await sendStatusReport(
await createStatusReportBase(
"init",
"aborted",
error instanceof UserError ? "user-error" : "aborted",
startedAt,
error.message,
error.stack