Skip to content

Commit a3fc6dc

Browse files
fixes
1 parent 9810645 commit a3fc6dc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

references/bun-catalog/trigger.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default defineConfig({
2323
console.log(`Task ${ctx.task.id} started ${ctx.run.id}`);
2424
} catch (error) {
2525
console.log(error)
26+
throw error; // Re-throw to fail the run
2627
}
2728
},
2829
onFailure: async (payload, error, { ctx }) => {

references/v3-catalog/trigger.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ export default defineConfig({
3434
try {
3535
console.log(`Task ${ctx.task.id} started ${ctx.run.id}`);
3636
} catch (error) {
37-
console.log(error)
37+
console.log(
38+
`Task ${ctx.task.id} failed ${ctx.run.id}: ${
39+
error instanceof Error ? error.message : String(error)
40+
}`
41+
);
42+
throw error; // Re-throw to fail the run
3843
}
3944
},
4045
onFailure: async (payload, error, { ctx }) => {

0 commit comments

Comments
 (0)