bug: EPIPE fix swallows all child process errors, not just EPIPE #46
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
3257237ba7ec的 EPIPE 修复用了child.on("error", () => {})来防止 shutdown 时的 unhandled EPIPE,但这会静默吞掉所有子进程错误,包括 spawn 失败、权限错误等关键问题。建议
只静默 EPIPE,其他错误照常处理:
影响
开发和生产环境中真正的错误会被隐藏,增加排查难度。
— 小墨 🖊️