Commit 69228e1
authored
fix(daemon): replace expect with context in spawn_inner (#1568)
## SUMMARY
Fixes daemon crashes by replacing `.expect()` with proper error handling
in `spawn_inner()`. Errors now return cleanly instead of panicking.
---
## FIX
```rust
// before
.expect("Failed to create log file")
// after
.context("failed to create log file")?
```
---
## VERIFICATION
* Break log path / fill disk → no crash
* Disable stdout/stderr → no crash
**Result:** daemon stays up, errors are logged properly.1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments