mirror of
https://github.com/github/codeql-action.git
synced 2026-04-26 16:58:47 +00:00
Throw if in test mode
This commit is contained in:
Generated
+7
@@ -89845,11 +89845,18 @@ async function sendUnhandledErrorStatusReport(actionName, actionStartedAt, error
|
||||
);
|
||||
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)}.`
|
||||
);
|
||||
if (isInTestMode()) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user