Commit c179f22
committed
Window(fix[rename_window]): propagate exception instead of swallowing
why: Previously, rename_window silently swallowed exceptions and returned
self, making callers believe the rename succeeded when it failed.
what:
- Drop try/except, use proc.stderr + raise pattern matching rename_session
- Propagate LibTmuxException on tmux errors1 parent aaabdd7 commit c179f22
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
489 | 487 | | |
| 488 | + | |
490 | 489 | | |
491 | 490 | | |
492 | 491 | | |
| |||
0 commit comments