mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Throw if in test mode
This commit is contained in:
7
lib/resolve-environment-action.js
generated
7
lib/resolve-environment-action.js
generated
@@ -88518,11 +88518,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