Skip to content

Commit 34f4276

Browse files
committed
Do not attempt to upload undefined status reports
1 parent 0d17ea4 commit 34f4276

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

lib/status-report.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/status-report.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/status-report.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,13 @@ const INCOMPATIBLE_MSG =
392392
export async function sendStatusReport<S extends StatusReportBase>(
393393
statusReport: S,
394394
): Promise<void> {
395+
if (statusReport === undefined) {
396+
core.warning(
397+
`Not uploading a status report, because of an internal problem.`,
398+
);
399+
return;
400+
}
401+
395402
setJobStatusIfUnsuccessful(statusReport.status);
396403

397404
const statusReportJSON = JSON.stringify(statusReport);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy