Wrong string formatting for panic masks real error
@@ -58,7 +58,7 @@ func main() {
}()
domainConn, err := virtwrap.NewConnection(*libvirtUri, *libvirtUser, *libvirtPass, 10*time.Second)
if err != nil {
- panic(fmt.Sprintf("failed to connect to libvirtd: %s", err))
+ panic(fmt.Sprintf("failed to connect to libvirtd: %v", err))
}
defer domainConn.Close()
