When attaching device from a xml file and the device is mis-configured,
virsh gives mis-leading message "out of memory". This patch fixes this.
Signed-off-by: Eric Blake <eblake@redhat.com>
/* We always get an IDE controller, whether we want it or not. */
case VIR_DOMAIN_CONTROLLER_TYPE_IDE:
default:
+ qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+ _("Unknown controller type: %s"),
+ virDomainControllerTypeToString(def->type));
goto error;
}
goto cleanup;
if (!(devstr = qemuBuildControllerDevStr(controller))) {
- virReportOOMError();
goto cleanup;
}
}