mirror of
https://github.com/github/codeql-action.git
synced 2026-04-27 01:08:46 +00:00
Use getErrorMessage in more places
This commit is contained in:
Generated
+5
-3
@@ -89728,7 +89728,9 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
||||
try {
|
||||
statusReport.actions_event_name = getWorkflowEventName();
|
||||
} catch (e) {
|
||||
logger.warning(`Could not determine the workflow event name: ${e}.`);
|
||||
logger.warning(
|
||||
`Could not determine the workflow event name: ${getErrorMessage(e)}.`
|
||||
);
|
||||
}
|
||||
if (config) {
|
||||
statusReport.languages = config.languages?.join(",");
|
||||
@@ -89766,7 +89768,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
||||
return statusReport;
|
||||
} catch (e) {
|
||||
logger.warning(
|
||||
`Caught an exception while gathering information for telemetry: ${e}. Will skip sending status report.`
|
||||
`Failed to gather information for telemetry: ${getErrorMessage(e)}. Will skip sending status report.`
|
||||
);
|
||||
if (isInTestMode()) {
|
||||
throw e;
|
||||
@@ -89846,7 +89848,7 @@ async function sendUnhandledErrorStatusReport(actionName, actionStartedAt, error
|
||||
}
|
||||
} catch (e) {
|
||||
logger.warning(
|
||||
`Caught an exception while sending the error status report: ${e}.`
|
||||
`Failed to send the error status report: ${getErrorMessage(e)}.`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user