Skip to content

Commit 37594be

Browse files
committed
log errors?
1 parent 6da139c commit 37594be

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev-packages/size-limit-gh-action/index.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,12 @@ async function run() {
279279
'⚠️ **Warning:** Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.',
280280
);
281281
}
282-
283-
bodyParts.push(markdownTable(limit.formatResults(base, current)));
282+
try {
283+
bodyParts.push(markdownTable(limit.formatResults(base, current)));
284+
} catch (error) {
285+
core.error('Error generating markdown table');
286+
core.error(error);
287+
}
284288

285289
if (baseWorkflowRun) {
286290
bodyParts.push('');

0 commit comments

Comments
 (0)