Skip to content
This repository was archived by the owner on Oct 10, 2026. It is now read-only.

Commit f74eb62

Browse files
fix(desktop): handle EPIPE errors on stdout/stderr to prevent crash dialog (pingdotgg#4213)
1 parent e5fba26 commit f74eb62

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎apps/desktop/src/main.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
for (const stream of [process.stdout, process.stderr]) {
2+
stream.on("error", (err: NodeJS.ErrnoException) => {
3+
if (err.code !== "EPIPE") throw err;
4+
});
5+
}
6+
17
import * as NodeHttpClient from "@effect/platform-node/NodeHttpClient";
28
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
39
import * as NodeServices from "@effect/platform-node/NodeServices";

0 commit comments

Comments
 (0)