Rename to "unhandled"

This commit is contained in:
Henry Mercer
2026-01-23 10:34:45 +00:00
parent 229e0cd749
commit 6bd84b6a82
17 changed files with 33 additions and 33 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ import {
createStatusReportBase,
DatabaseCreationTimings,
getActionsStatus,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
StatusReportBase,
} from "./status-report";
import {
@@ -536,7 +536,7 @@ async function runWrapper() {
await runPromise;
} catch (error) {
core.setFailed(`analyze action failed: ${util.getErrorMessage(error)}`);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.Analyze,
startedAt,
error,
+2 -2
View File
@@ -17,7 +17,7 @@ import {
getActionsStatus,
createStatusReportBase,
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
ActionName,
} from "./status-report";
import { endTracingForCluster } from "./tracer-config";
@@ -149,7 +149,7 @@ async function runWrapper() {
await run(startedAt);
} catch (error) {
core.setFailed(`autobuild action failed. ${getErrorMessage(error)}`);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.Autobuild,
startedAt,
error,
+2 -2
View File
@@ -28,7 +28,7 @@ import { getRepositoryNwo } from "./repository";
import {
StatusReportBase,
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
createStatusReportBase,
getActionsStatus,
ActionName,
@@ -146,7 +146,7 @@ async function runWrapper() {
await run(startedAt);
} catch (error) {
core.setFailed(`init post action failed: ${wrapError(error).message}`);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.InitPost,
startedAt,
error,
+2 -2
View File
@@ -64,7 +64,7 @@ import {
createStatusReportBase,
getActionsStatus,
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
} from "./status-report";
import { ZstdAvailability } from "./tar";
import { ToolsDownloadStatusReport } from "./tools-download";
@@ -811,7 +811,7 @@ async function runWrapper() {
await run(startedAt);
} catch (error) {
core.setFailed(`init action failed: ${getErrorMessage(error)}`);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.Init,
startedAt,
error,
+2 -2
View File
@@ -13,7 +13,7 @@ import { getActionsLogger } from "./logging";
import { runResolveBuildEnvironment } from "./resolve-environment";
import {
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
createStatusReportBase,
getActionsStatus,
ActionName,
@@ -128,7 +128,7 @@ async function runWrapper() {
error,
)}`,
);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.ResolveEnvironment,
startedAt,
error,
+2 -2
View File
@@ -22,7 +22,7 @@ import {
createStatusReportBase,
getActionsStatus,
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
} from "./status-report";
import { ToolsDownloadStatusReport } from "./tools-download";
import {
@@ -195,7 +195,7 @@ async function runWrapper(): Promise<void> {
await run(startedAt);
} catch (error) {
core.setFailed(`setup-codeql action failed: ${getErrorMessage(error)}`);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.SetupCodeQL,
startedAt,
error,
+2 -2
View File
@@ -22,7 +22,7 @@ import {
createStatusReportBase,
getActionsStatus,
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
StatusReportBase,
} from "./status-report";
import * as util from "./util";
@@ -210,7 +210,7 @@ async function runWrapper() {
await run(startedAt);
} catch (error) {
core.setFailed(`start-proxy action failed: ${util.getErrorMessage(error)}`);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.StartProxy,
startedAt,
error,
+1 -1
View File
@@ -607,7 +607,7 @@ export async function createInitWithConfigStatusReport(
};
}
export async function sendUnexpectedErrorStatusReport(
export async function sendUnhandledErrorStatusReport(
actionName: ActionName,
actionStartedAt: Date,
error: unknown,
+2 -2
View File
@@ -10,7 +10,7 @@ import { getRepositoryNwo } from "./repository";
import {
createStatusReportBase,
sendStatusReport,
sendUnexpectedErrorStatusReport,
sendUnhandledErrorStatusReport,
StatusReportBase,
getActionsStatus,
ActionName,
@@ -173,7 +173,7 @@ async function runWrapper() {
core.setFailed(
`codeql/upload-sarif action failed: ${getErrorMessage(error)}`,
);
await sendUnexpectedErrorStatusReport(
await sendUnhandledErrorStatusReport(
ActionName.UploadSarif,
startedAt,
error,