]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ch: report response message instead of just code
authorPurna Pavan Chandra <paekkaladevi@linux.microsoft.com>
Mon, 5 Aug 2024 14:40:53 +0000 (14:40 +0000)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 9 Aug 2024 13:03:07 +0000 (15:03 +0200)
The response message from CH for vm.add-net api will be more helpful in
debugging. Hence, log the message instead of just response code.

Signed-off-by: Purna Pavan Chandra <paekkaladevi@linux.microsoft.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/ch/ch_process.c

index 48190a12736f4509db009f7d27e51761e5902b00..6f99fec900140513c2300b74eb067380833bc656 100644 (file)
@@ -665,7 +665,7 @@ chProcessAddNetworkDevices(virCHDriver *driver,
         }
         if (http_res != 204 && http_res != 200) {
             virReportError(VIR_ERR_INTERNAL_ERROR,
-                           _("Unexpected response from CH: %1$d"), http_res);
+                           _("Unexpected response from CH: %1$s"), response);
             return -1;
         }
     }