Commit 3f65002
authored
fix: register error callback in FFI CLI binary (#575)
* fix: register error callback in FFI CLI binary
Without `on_error`, fatal errors from the background sync task were
silently swallowed and the CLI would hang waiting for Ctrl+C.
* fix: terminate process on fatal error in `on_error` callback
Addresses CodeRabbit review comment on PR #575
#575 (comment)1 parent 734b35f commit 3f65002
1 file changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
260 | 277 | | |
261 | 278 | | |
262 | 279 | | |
| |||
423 | 440 | | |
424 | 441 | | |
425 | 442 | | |
426 | | - | |
| 443 | + | |
427 | 444 | | |
428 | 445 | | |
429 | 446 | | |
| |||
0 commit comments