Use wrapApiConfigurationError in init-action-post error handler

This commit is contained in:
Michael B. Gale
2026-09-25 18:21:45 +01:00
parent 0af3281195
commit 1991d2001e
2 changed files with 3 additions and 3 deletions

2
lib/entry-points.js generated
View File

@@ -163077,7 +163077,7 @@ async function run4(startedAt) {
}
}
} catch (unwrappedError) {
const error3 = wrapError(unwrappedError);
const error3 = wrapApiConfigurationError(wrapError(unwrappedError));
core23.setFailed(error3.message);
const statusReportBase2 = await createStatusReportBase(
"init-post" /* InitPost */,

View File

@@ -12,7 +12,7 @@ import {
getTemporaryDirectory,
printDebugLogs,
} from "./actions-util";
import { getGitHubVersion } from "./api-client";
import { getGitHubVersion, wrapApiConfigurationError } from "./api-client";
import { CachingKind } from "./caching-utils";
import { getCodeQL } from "./codeql";
import { type Config, getConfig } from "./config-utils";
@@ -108,7 +108,7 @@ async function run(startedAt: Date) {
}
}
} catch (unwrappedError) {
const error = wrapError(unwrappedError);
const error = wrapApiConfigurationError(wrapError(unwrappedError));
core.setFailed(error.message);
const statusReportBase = await createStatusReportBase(