mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Address review comments
This commit is contained in:
Generated
+2
-6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user