From ee0bff6451b3189f80f315c17e6fa626adb512b9 Mon Sep 17 00:00:00 2001 From: Mikhail Ushanov Date: Tue, 6 Nov 2018 22:02:51 +0300 Subject: [PATCH] communicator/ssh: proper error message Signed-off-by: Mikhail Ushanov --- helper/communicator/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper/communicator/config.go b/helper/communicator/config.go index 71e40daac..fa4e053c3 100644 --- a/helper/communicator/config.go +++ b/helper/communicator/config.go @@ -130,7 +130,7 @@ func (c *Config) SSHConfigFunc() func(multistep.StateBag) (*ssh.ClientConfig, er for _, key := range privateKeys { signer, err := ssh.ParsePrivateKey(key) if err != nil { - return nil, fmt.Errorf("Error setting up SSH config: %s", err) + return nil, fmt.Errorf("Error on parsing SSH private key: %s", err) } sshConfig.Auth = append(sshConfig.Auth, ssh.PublicKeys(signer)) }