]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: Reword error message to be more universal
authorPeter Krempa <pkrempa@redhat.com>
Tue, 16 Apr 2013 09:50:10 +0000 (11:50 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 19 Apr 2013 14:55:59 +0000 (16:55 +0200)
The error message reported when attempting to change/get persistent
configuration of a transient domain suggests that changes are being
made. Reword it to suit getter APIs too.

Before:
$ virsh vcpucount transient-domain --config
error: Requested operation is not valid: cannot change persistent config of a transient domain

After:
$ virsh vcpucount transient-domain --config
error: Requested operation is not valid: transient domains do not have any persistent config

src/conf/domain_conf.c

index 1643f30206c52faeb8435bdea7d7bdaae381c551..758f416b08f7434090d7152b99d5159f0a4a8d60 100644 (file)
@@ -2251,8 +2251,8 @@ virDomainLiveConfigHelperMethod(virCapsPtr caps,
     if (*flags & VIR_DOMAIN_AFFECT_CONFIG) {
         if (!dom->persistent) {
             virReportError(VIR_ERR_OPERATION_INVALID, "%s",
-                           _("cannot change persistent config of a "
-                             "transient domain"));
+                           _("transient domains do not have any "
+                             "persistent config"));
             goto cleanup;
         }
         if (!(*persistentDef = virDomainObjGetPersistentDef(caps, xmlopt, dom))) {