Commit 9001ae5
committed
fix: improve bootstrap error handling
Improve error handling in bootstrap processes to suppress spurious errors
and handle process exit codes more robustly:
Bootstrap-smol improvements:
- Suppress spurious "command failed" errors during CLI execution
- Extract error message once for reuse
- Only write actual errors to stderr
Node bootstrap improvements:
- Handle signal-based process exits correctly
- Exit with code 1 when child process terminated by signal
- Exit with child's exit code otherwise (or 0 if none)
These changes reduce noise in error output and ensure correct exit
codes are propagated through the bootstrap chain.1 parent cef8612 commit 9001ae5
File tree
2 files changed
+8
-3
lines changed- packages
- bootstrap/src
- cli/src/bootstrap
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | | - | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
| |||
0 commit comments