Skip to content

Commit c694f7c

Browse files
authored
Merge cdebc84 into 6f06d84
2 parents 6f06d84 + cdebc84 commit c694f7c

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

scripts/size_report/report_binary_size.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ async function generateSizeReport(): Promise<BinarySizeRequestBody> {
177177
};
178178
}
179179

180-
generateSizeReport().then(report => {
181-
upload(report, RequestEndpoint.BINARY_SIZE);
182-
});
180+
generateSizeReport()
181+
.then(report => {
182+
upload(report, RequestEndpoint.BINARY_SIZE);
183+
})
184+
.catch(err => {
185+
console.error(err);
186+
process.exit(1);
187+
});

scripts/size_report/report_modular_export_binary_size.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ async function generateReport(): Promise<ModularExportBinarySizeRequestBody> {
5353
}
5454

5555
async function main(): Promise<void> {
56-
const reports: ModularExportBinarySizeRequestBody = await generateReport();
57-
console.log(JSON.stringify(reports, null, 4));
58-
upload(reports, RequestEndpoint.MODULAR_EXPORT_BINARY_SIZE);
56+
try {
57+
const reports: ModularExportBinarySizeRequestBody = await generateReport();
58+
console.log(JSON.stringify(reports, null, 4));
59+
upload(reports, RequestEndpoint.MODULAR_EXPORT_BINARY_SIZE);
60+
} catch (e) {
61+
console.error(e);
62+
process.exit(1);
63+
}
5964
}
6065
main();

0 commit comments

Comments
 (0)