Logging: tolerate EIO console writes

This commit is contained in:
George Pickett
2026-01-14 17:55:06 -08:00
committed by Peter Steinberger
parent ed68f378d7
commit 8f797f213e
3 changed files with 88 additions and 1 deletions

View File

@@ -89,7 +89,8 @@ function shouldSuppressConsoleMessage(message: string): boolean {
}
function isEpipeError(err: unknown): boolean {
return Boolean((err as { code?: string })?.code === "EPIPE");
const code = (err as { code?: string })?.code;
return code === "EPIPE" || code === "EIO";
}
/**