Skip to content

Commit

Permalink
use %w for error formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacvicar committed Nov 19, 2023
1 parent 039917d commit 9adc252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvirt/uri/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (u *ConnectionURI) dialSSH() (net.Conn, error) {
log.Printf("[DEBUG] ssh user: system username")
u, err := user.Current()
if err != nil {
return nil, fmt.Errorf("unable to get username: %v", err)
return nil, fmt.Errorf("unable to get username: %w", err)
}
sshu = u.Username
}
Expand Down

0 comments on commit 9adc252

Please sign in to comment.