Skip to content

Commit 9adc252

Browse files
committed
use %w for error formatting
1 parent 039917d commit 9adc252

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
@@ -126,7 +126,7 @@ func (u *ConnectionURI) dialSSH() (net.Conn, error) {
126126
log.Printf("[DEBUG] ssh user: system username")
127127
u, err := user.Current()
128128
if err != nil {
129-
return nil, fmt.Errorf("unable to get username: %v", err)
129+
return nil, fmt.Errorf("unable to get username: %w", err)
130130
}
131131
sshu = u.Username
132132
}

0 commit comments

Comments
 (0)