fix(desktop): handle EPIPE errors on stdout/stderr to prevent crash dialog (#4213)

This commit is contained in:
Utkarsh Patil authored and GitHub committed 2026-07-22 17:23:07 +02:00
1 parent e5fba263e6
commit f74eb62661
1 file changed
+6
+6
View File
@@ -1,3 +1,9 @@
for (const stream of [process.stdout, process.stderr]) {
stream.on("error", (err: NodeJS.ErrnoException) => {
if (err.code !== "EPIPE") throw err;
});
}
import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient";
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
import * as NodeServices from "@effect/platform-node/NodeServices";