]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
domain_conf: graphics: fix error messages when formatting XML
authorPavel Hrdina <phrdina@redhat.com>
Thu, 6 Mar 2025 11:51:49 +0000 (12:51 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 7 Mar 2025 13:01:27 +0000 (14:01 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c

index fbbc7705e8291f52e04adc2732177facac3142f8..278d3bd4e9c44973173d81e818a8e6d0bbc0df99 100644 (file)
@@ -26470,7 +26470,7 @@ virDomainGraphicsDefFormatVNC(virBuffer *attrBuf,
 
     if (!glisten) {
         virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
-                       _("missing listen element for graphics"));
+                       _("missing listen element for VNC graphics"));
         return -1;
     }
 
@@ -26726,7 +26726,7 @@ virDomainGraphicsDefFormat(virBuffer *buf,
 
     if (!type) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
-                       _("unexpected net type %1$d"), def->type);
+                       _("unexpected graphics type '%1$d'"), def->type);
         return -1;
     }