fix(logging): keep string failure codes on EPIPE · openclaw/openclaw@78a1e7d
steipete
·
2026-05-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -202,7 +202,7 @@ export function enableConsoleCapture(): void {
|
202 | 202 | // service restarted and closed the journal pipe). Exit cleanly instead |
203 | 203 | // of spinning in a tight loop where every log attempt re-triggers EPIPE. |
204 | 204 | const exitCode = process.exitCode; |
205 | | -process.exit(typeof exitCode === "number" && exitCode !== 0 ? exitCode : 0); |
| 205 | +process.exit(exitCode !== undefined && exitCode !== 0 && exitCode !== "0" ? exitCode : 0); |
206 | 206 | return; |
207 | 207 | } |
208 | 208 | throw err; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。