We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09b44a commit 9dfc038Copy full SHA for 9dfc038
.werft/util/werft.ts
@@ -71,6 +71,13 @@ export class Werft {
71
*/
72
public fail(slice, err) {
73
const span = this.sliceSpans[slice];
74
+
75
+ if (span) {
76
+ span.end()
77
+ } else {
78
+ console.log(`[${slice}] tracing warning: No slice span by name ${slice}`)
79
+ }
80
81
// Set the status on the span for the slice and also propagate the status to the phase and root span
82
// as well so we can query on all phases that had an error regardless of which slice produced the error.
83
[span, this.rootSpan, this.currentPhaseSpan].forEach((span: Span) => {
@@ -83,8 +90,6 @@ export class Werft {
90
})
84
91
85
92
86
- span.end()
87
-
88
93
console.log(`[${slice}|FAIL] ${err}`);
89
94
throw err;
95
}
0 commit comments