Address review comments

This commit is contained in:
Henry Mercer
2026-01-23 12:22:31 +00:00
parent 28bfb7b7b5
commit fba78720ca
9 changed files with 18 additions and 54 deletions
+2 -6
View File
@@ -89840,19 +89840,15 @@ async function sendUnhandledErrorStatusReport(actionName, actionStartedAt, error
void 0,
void 0,
logger,
`Unhandled error: ${getErrorMessage(error3)}`,
`Unhandled CodeQL Action error: ${getErrorMessage(error3)}`,
error3 instanceof Error ? error3.stack : void 0
);
if (statusReport !== void 0) {
await sendStatusReport(statusReport);
} else if (isInTestMode()) {
throw new Error(
"Failed to create status report for unhandled error in test mode."
);
}
} catch (e) {
logger.warning(
`Failed to send the error status report: ${getErrorMessage(e)}.`
`Failed to send the unhandled error status report: ${getErrorMessage(e)}.`
);
if (isInTestMode()) {
throw e;