mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 14:55:37 +00:00
Merge pull request #880 from webadderallorg/codex/ignore-console-eio
Prevent closed console streams from crashing Recordly
This commit is contained in:
+1
-1
@@ -64,7 +64,7 @@ const IS_SMOKE_EXPORT = process.env.RECORDLY_SMOKE_EXPORT === "1";
|
||||
|
||||
function ignoreBrokenConsolePipe(stream: NodeJS.WritableStream | undefined) {
|
||||
stream?.on("error", (error: NodeJS.ErrnoException) => {
|
||||
if (error.code === "EPIPE") {
|
||||
if (error.code === "EPIPE" || error.code === "EIO") {
|
||||
return;
|
||||
}
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user