Skip to content

Commit 72a3214

Browse files
scabaladmacvicar
authored andcommitted
fix: make error message more verbose
1 parent 1073a2c commit 72a3214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libvirt/uri/ssh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func (u *ConnectionURI) parseAuthMethods(target string, sshcfg *ssh_config.Confi
9393

9494
signer, err := ssh.ParsePrivateKey(sshKey)
9595
if err != nil {
96-
log.Printf("[ERROR] Failed to parse ssh key: %v", err)
96+
log.Printf("[ERROR] Failed to parse ssh key %s: %v", keypath, err)
9797
continue
9898
}
9999
result = append(result, ssh.PublicKeys(signer))

0 commit comments

Comments
 (0)