- Notifications
You must be signed in to change notification settings - Fork1k
Commitc8742ba
authored
fix(cli): enhance error handling for multiple agents in SSH command (#19943)
Closes#19812## Problem> When I try to SSH into my workspace with multiple agents. It does notprovide an intuitive way to do that successfully and instead misguidesby printing wrong instructions.This PR enhances the error handling to provide suggestions with SSHcommands that users can copy and paste directly.Before:```Encountered an error running "coder ssh", see "coder ssh --help" for more informationerror: multiple agents found, please specify the agent name, available agents: [coder dev]```After:```Encountered an error running "coder ssh", see "coder ssh --help" for more informationerror: multiple agents found, please specify the agent name, available agents: [coder dev]Try running: $ ssh coder.dogfood.me.coder $ ssh dev.dogfood.me.coder```1 parentda467ba commitc8742ba
1 file changed
+19
-3
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
756 | 756 |
| |
757 | 757 |
| |
758 | 758 |
| |
759 |
| - | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
760 | 776 |
| |
761 | 777 |
| |
762 | 778 |
| |
| |||
922 | 938 |
| |
923 | 939 |
| |
924 | 940 |
| |
925 |
| - | |
| 941 | + | |
926 | 942 |
| |
927 | 943 |
| |
928 | 944 |
| |
| |||
958 | 974 |
| |
959 | 975 |
| |
960 | 976 |
| |
961 |
| - | |
| 977 | + | |
962 | 978 |
| |
963 | 979 |
| |
964 | 980 |
| |
|
0 commit comments
Comments
(0)