Commit 3c2009a
committed
fix(devframe): handle non-Error listen failures
The DF0052 catch assumed the caught value was an Error and cast both
`message` and `cause`. `listen()` can throw arbitrary values, so derive
the reason with the `error instanceof Error ? error.message : String(error)`
pattern already used at both DF0045 call sites in instance-registry.ts,
and pass the original value through as `cause` uncast.
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent 0041d0f commit 3c2009a
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
276 | 281 | | |
277 | 282 | | |
278 | 283 | | |
| |||
0 commit comments