Commit 5c4c1b1
committed
fix: finalization on error and empty-state hint rendering
1. command.ts: Move writeFinalization out of finally block. On error,
finalize only in human mode (to close streaming table) before
handleOutputError. Prevents corrupting JSON output or writing
footer after process.exit().
2. log/list.ts: When no logs were rendered (headerEmitted=false),
render hint as primary text instead of muted footer. Preserves
the 'No logs found.' UX from before the refactor.1 parent 945956a commit 5c4c1b1
2 files changed
+15
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
464 | 463 | | |
465 | | - | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
465 | | - | |
466 | 465 | | |
467 | 466 | | |
468 | 467 | | |
| |||
475 | 474 | | |
476 | 475 | | |
477 | 476 | | |
| 477 | + | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
481 | 487 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
| |||
0 commit comments