break;
case VIR_DOMAIN_BLOCK_JOB_FAILED:
- vshPrint(ctl, "\n%s", _("Commit failed"));
+ vshError(ctl, "\n%s", _("Commit failed"));
goto cleanup;
break;
break;
case VIR_DOMAIN_BLOCK_JOB_FAILED:
- vshPrint(ctl, "\n%s", _("Copy failed"));
+ vshError(ctl, "\n%s", _("Copy failed"));
goto cleanup;
break;
break;
case VIR_DOMAIN_BLOCK_JOB_FAILED:
- vshPrint(ctl, "\n%s", _("Pull failed"));
+ vshError(ctl, "\n%s", _("Pull failed"));
goto cleanup;
break;
virStoragePoolPtr storagepool = NULL;
if (!source) {
- vshPrint(ctl,
+ vshError(ctl,
_("Missing storage volume name for disk '%s'"),
target);
continue;
if (!(storagepool = virStoragePoolLookupByName(priv->conn,
pool))) {
- vshPrint(ctl,
+ vshError(ctl,
_("Storage pool '%s' for volume '%s' not found."),
pool, target);
vshResetLibvirtError();
}
if (!vol.vol) {
- vshPrint(ctl,
+ vshError(ctl,
_("Storage volume '%s'(%s) is not managed by libvirt. "
"Remove it manually.\n"), target, source);
vshResetLibvirtError();
newxml = virshMakeCloneXML(origxml, name);
if (!newxml) {
- vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
+ vshError(ctl, "%s", _("Failed to allocate XML buffer"));
goto cleanup;
}
if (xml) {
virBufferEscapeString(&xmlbuf, "%s", arg);
if (virBufferError(&xmlbuf)) {
- vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
+ vshError(ctl, "%s", _("Failed to allocate XML buffer"));
return false;
}
str = virBufferContentAndReset(&xmlbuf);
}
if (virBufferError(&buf)) {
- vshPrint(ctl, "%s", _("Failed to allocate XML buffer"));
+ vshError(ctl, "%s", _("Failed to allocate XML buffer"));
return false;
}
arg = virBufferContentAndReset(&buf);