Repository navigation
Commit fb52715
committed
fix(util): type a synchronous spawn refusal through the PlatformError channel
launch() can throw synchronously (e.g. EPERM from uv_spawn on Windows);
launchProcess only mapped the async error event to a PlatformError, so
the throw escaped the Effect.callback as a defect that no caller's
typed-failure handling sees — the failure mode behind the
Snapshot.capture step death in anomalyco#58685. Wrap the launch call and resume
through the same toPlatformError path, so every caller gets the typed
failure its handlers already recover. Reviewed-by-direction from the
retained patch.1 parent c96543a commit fb52715
2 files changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 147 | | |
153 | 148 | | |
154 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
389 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
390 | 399 | | |
391 | 400 | | |
392 | 401 | | |
| |||
0 commit comments