File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export default defineConfig({
23
23
console . log ( `Task ${ ctx . task . id } started ${ ctx . run . id } ` ) ;
24
24
} catch ( error ) {
25
25
console . log ( error )
26
+ throw error ; // Re-throw to fail the run
26
27
}
27
28
} ,
28
29
onFailure : async ( payload , error , { ctx } ) => {
Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ export default defineConfig({
34
34
try {
35
35
console . log ( `Task ${ ctx . task . id } started ${ ctx . run . id } ` ) ;
36
36
} 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
38
43
}
39
44
} ,
40
45
onFailure : async ( payload , error , { ctx } ) => {
You can’t perform that action at this time.
0 commit comments