Commit c3c1bf0
committed
🤖 Fix: Catch runtime creation errors in WORKSPACE_CREATE handler
The WORKSPACE_CREATE IPC handler wasn't catching errors thrown during
runtime creation (e.g., validation errors for tilde paths in SSH runtime).
This caused tests to fail with unhandled exceptions instead of returning
{ success: false, error: ... } as expected.
Wrap createRuntime() call in try-catch to properly handle validation errors
and return them through the IPC boundary.
Fixes integration test: 'rejects tilde paths in srcBaseDir (SSH only)'
_Generated with `cmux`_1 parent e0a2179 commit c3c1bf0
1 file changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
287 | 295 | | |
288 | 296 | | |
289 | 297 | | |
| |||
0 commit comments