Skip to content

Commit

Permalink
feat: display user@host:port in error message (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad authored Apr 19, 2024
1 parent 3f29243 commit 3755190
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 @@ -305,7 +305,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 3755190

Please sign in to comment.