File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export class FailedSliceError extends Error {
7
7
constructor ( message : string ) {
8
8
super ( message ) ;
9
9
this . name = "FailedSliceError" ;
10
+ Object . setPrototypeOf ( this , FailedSliceError . prototype ) ;
10
11
}
11
12
}
12
13
@@ -107,11 +108,9 @@ export class Werft {
107
108
108
109
// In case the error message is a multi-line string we want to ensure that we contain
109
110
// the error message within the slice (otherwise they'll be moved to the "default" slice of the phase)
110
- errorMessage
111
- . split ( "\n" )
112
- . forEach ( ( line : string ) => console . log ( `[${ slice } ] ${ line } ` ) ) ;
111
+ errorMessage . split ( "\n" ) . forEach ( ( line : string ) => console . log ( `[${ slice } ] ${ line } ` ) ) ;
113
112
114
- console . log ( `[${ slice } ] Failed. Expand to see why` )
113
+ console . log ( `[${ slice } ] Failed. Expand to see why` ) ;
115
114
console . log ( `[${ slice } |FAIL]` ) ;
116
115
throw new FailedSliceError ( slice ) ;
117
116
}
You can’t perform that action at this time.
0 commit comments