mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-12 22:51:29 +00:00
src/node_device: don't overwrite error messages
The nodedev code unhelpfully reports couldn't convert node device def to mdevctl JSON which hides the actual error message No JSON parser implementation is available Reviewed-by: Peter Krempa <pkrempa@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
479333af2c
commit
a47e73d6e7
@ -774,8 +774,6 @@ nodeDeviceGetMdevctlCommand(virNodeDeviceDef *def,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (nodeDeviceDefToMdevctlConfig(def, &inbuf, true) < 0) {
|
if (nodeDeviceDefToMdevctlConfig(def, &inbuf, true) < 0) {
|
||||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
|
|
||||||
_("couldn't convert node device def to mdevctl JSON"));
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user