Repository navigation
Commit 7a282f9
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
anomalyco#58722 review thread; implementation shape credited to r266-tech's
retained patch.1 parent 17f9662 commit 7a282f9
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
284 | 293 | | |
285 | 294 | | |
286 | 295 | | |
| |||
0 commit comments