Commit f5a5839
committed
fix: surface window-unavailable error instead of generic send error in SSH prompt
When the main window is destroyed during the IPC send/focus path,
the catch handler now checks if the thrown error is a window-unavailable
message and returns DesktopSshPromptWindowUnavailableError instead of
wrapping it in DesktopSshPromptSendError. This ensures the user sees
the correct window-unavailable explanation rather than a generic
send failure message.1 parent 5291b43 commit f5a5839
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
344 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
345 | 353 | | |
346 | 354 | | |
347 | 355 | | |
348 | | - | |
| 356 | + | |
| 357 | + | |
349 | 358 | | |
350 | 359 | | |
351 | 360 | | |
| |||
0 commit comments