Skip to content

Commit 000d08e

Browse files
committed
better error handling
1 parent a9b09d5 commit 000d08e

File tree

1 file changed

+3
-2
lines changed
  • dev-packages/node-overhead-gh-action

1 file changed

+3
-2
lines changed

dev-packages/node-overhead-gh-action/index.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ async function run() {
105105
current = await getOverheadMeasurements();
106106
} catch (error) {
107107
core.error('Error getting current overhead measurements');
108-
core.error(error);
108+
core.endGroup();
109+
throw error;
109110
}
110111
core.debug(`Current overhead measurements: ${JSON.stringify(current, null, 2)}`);
111112
core.endGroup();
@@ -133,7 +134,7 @@ async function run() {
133134
bodyParts.push(markdownTable(formatter.formatResults(base, current)));
134135
} catch (error) {
135136
core.error('Error generating markdown table');
136-
core.error(error);
137+
throw error;
137138
}
138139

139140
if (baseWorkflowRun) {

0 commit comments

Comments
 (0)