Skip to content

Commit 37e50e3

Browse files
committed
fix(build): suppress worker EPIPE errors
1 parent 5ed19ec commit 37e50e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/node/worker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class WorkerManager extends EventEmitter {
2828
if (err.code === 'ERR_IPC_CHANNEL_CLOSED') {
2929
return this.stopWorker(workerId);
3030
}
31-
if (this.options.logger) {
31+
if (this.options.logger && err.code !== 'EPIPE') {
3232
this.options.logger.error(err);
3333
}
3434
}

0 commit comments

Comments
 (0)