File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,10 @@ export class Werft {
70
70
* Use this when you intend to fail the werft job
71
71
*/
72
72
public fail ( slice , err ) {
73
+ const span = this . sliceSpans [ slice ] ;
73
74
// Set the status on the span for the slice and also propagate the status to the phase and root span
74
75
// as well so we can query on all phases that had an error regardless of which slice produced the error.
75
- [ this . sliceSpans [ slice ] , this . rootSpan , this . currentPhaseSpan ] . forEach ( ( span : Span ) => {
76
+ [ span , this . rootSpan , this . currentPhaseSpan ] . forEach ( ( span : Span ) => {
76
77
if ( ! span ) {
77
78
return
78
79
}
@@ -82,7 +83,7 @@ export class Werft {
82
83
} )
83
84
} )
84
85
85
- this . endAllSpans ( )
86
+ span . end ( )
86
87
87
88
console . log ( `[${ slice } |FAIL] ${ err } ` ) ;
88
89
throw err ;
You can’t perform that action at this time.
0 commit comments