Commit 658de1b
fix(portal): handle a failed live-reload server bind gracefully
livereload binds its own internal HTTP server and only error-handles the WebSocket
server, so a taken live-reload port (race after get-port) emitted an unhandled
"error" and crashed the CLI. Wait on livereload's internal HTTP server
(config.server) right after creation and fail cleanly with serverStartFailed,
mirroring the main server's bind handling.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 1c9978d commit 658de1b
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 89 | | |
82 | 90 | | |
83 | 91 | | |
| |||
0 commit comments