Skip to content

Commit

Permalink
feat: display user@host:port in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Apr 14, 2024
1 parent 1a108a8 commit be31575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/remote_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ func (c *RemoteClient) DeleteFileShell(path string) error {
func NewRemoteClient(host string, clientConfig *ssh.ClientConfig) (*RemoteClient, error) {
client, err := ssh.Dial("tcp", host, clientConfig)
if err != nil {
return nil, fmt.Errorf("couldn't establish a connection to the remote server: %s", err.Error())
return nil, fmt.Errorf("couldn't establish a connection to the remote server '%s@%s': %s", clientConfig.User, host, err.Error())
}

return &RemoteClient{
Expand Down

0 comments on commit be31575

Please sign in to comment.