Skip to content

Commit 25e07cb

Browse files
committed
WIP
1 parent db4eaa1 commit 25e07cb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.werft/util/werft.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export class FailedSliceError extends Error {
77
constructor(message: string) {
88
super(message);
99
this.name = "FailedSliceError";
10+
Object.setPrototypeOf(this, FailedSliceError.prototype);
1011
}
1112
}
1213

@@ -107,11 +108,9 @@ export class Werft {
107108

108109
// In case the error message is a multi-line string we want to ensure that we contain
109110
// 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}`));
113112

114-
console.log(`[${slice}] Failed. Expand to see why`)
113+
console.log(`[${slice}] Failed. Expand to see why`);
115114
console.log(`[${slice}|FAIL]`);
116115
throw new FailedSliceError(slice);
117116
}

0 commit comments

Comments
 (0)