mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 22:30:44 +00:00
Report user errors in the abort stage appropriately
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user