Skip to content

Commit 1991d20

Browse files
committed
Use wrapApiConfigurationError in init-action-post error handler
1 parent 0af3281 commit 1991d20

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/entry-points.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.

‎src/init-action-post.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
getTemporaryDirectory,
1313
printDebugLogs,
1414
} from "./actions-util";
15-
import { getGitHubVersion } from "./api-client";
15+
import { getGitHubVersion, wrapApiConfigurationError } from "./api-client";
1616
import { CachingKind } from "./caching-utils";
1717
import { getCodeQL } from "./codeql";
1818
import { type Config, getConfig } from "./config-utils";
@@ -108,7 +108,7 @@ async function run(startedAt: Date) {
108108
}
109109
}
110110
} catch (unwrappedError) {
111-
const error = wrapError(unwrappedError);
111+
const error = wrapApiConfigurationError(wrapError(unwrappedError));
112112
core.setFailed(error.message);
113113

114114
const statusReportBase = await createStatusReportBase(

0 commit comments

Comments
 (0)