[PATCH 8/8] storage: Improve error message when a storage backend is missing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Include the name of the storage backend in the error message instead of
just the number.
---
 src/storage/storage_backend.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c
index b08d646..19fb1f0 100644
--- a/src/storage/storage_backend.c
+++ b/src/storage/storage_backend.c
@@ -1146,7 +1146,8 @@ virStorageBackendForType(int type)
             return backends[i];

     virReportError(VIR_ERR_INTERNAL_ERROR,
-                   _("missing backend for pool type %d"), type);
+                   _("missing backend for pool type %d (%s)"),
+                   type, NULLSTR(virStoragePoolTypeToString(type)));
     return NULL;
 }

-- 
1.8.5.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]