apcssh: minor log and logic clarity

This commit is contained in:
Greg T. Wallace 2024-06-19 19:56:16 -04:00
parent f1dd079632
commit 841a459dca
4 changed files with 7 additions and 11 deletions
pkg/apcssh

View file

@ -19,7 +19,7 @@ func (cli *Client) UploadSCP(destination string, fileContent []byte, filePermiss
// connect
sshClient, err := ssh.Dial("tcp", cli.hostname, cli.sshCfg)
if err != nil {
return fmt.Errorf("apcssh: scp: failed to dial session (%w)", err)
return fmt.Errorf("apcssh: scp: failed to dial client (%w)", err)
}
defer sshClient.Close()