Repository navigation
Commit bc164d2
authored
Preserve the original Fantom spawn error
## Summary:
Fixes #60059. Fantom throws while reading stdout if a child process cannot start. Treat missing stdout as empty so the caller gets the original spawn error, just as it already does for stderr.
Thanks @YevheniiKotyrlo for reporting the issue and providing the reproducer. Codex helped implement and verify the change.
## Changelog:
[INTERNAL] [FIXED] - Preserve the original process launch error in Fantom.
## Test Plan:
- `yarn test --ci --runInBand private/react-native-fantom/runner/__tests__` on Windows: 11 tests passed. The missing-executable case fails on main and now reports ENOENT. The successful subprocess still returns both output streams.
- ESLint and Prettier passed for both changed files.
Differential Revision: D132612487
Pull Request resolved: #600881 parent fbb5319 commit bc164d2
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
| |||
0 commit comments