Skip to content

Commit

Permalink
fix(host): wrap qemu machine info error (#21971)
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi authored Jan 14, 2025
1 parent 60778a6 commit 87d7d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/hostman/hostinfo/hostinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ func (h *SHostInfo) detectQemuCapabilities(version string) error {
var machineInfoList = make([]monitor.MachineInfo, 0)
err = res.Unmarshal(&machineInfoList, "return")
if err != nil {
return errors.Errorf("failed unmarshal machineinfo return %s: %s", segs[3], err)
return errors.Wrapf(err, "failed unmarshal machineinfo return %s", res.PrettyString())
}
h.qemuMachineInfoList = machineInfoList
qemuCaps := &QemuCaps{
Expand Down

0 comments on commit 87d7d50

Please sign in to comment.