mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Throw if in test mode
This commit is contained in:
Generated
+7
@@ -94426,11 +94426,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+7
@@ -88898,11 +88898,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+7
@@ -130789,11 +130789,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+7
@@ -92263,11 +92263,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+7
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+7
@@ -104682,11 +104682,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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Generated
+7
@@ -91075,11 +91075,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