From 3e428c0b2ad662263ed63ad19aea06af5b9183cf Mon Sep 17 00:00:00 2001 Message-Id: <3e428c0b2ad662263ed63ad19aea06af5b9183cf@dist-git> From: Peter Krempa Date: Wed, 26 Feb 2014 14:55:16 +0100 Subject: [PATCH] storage: Improve error message when a storage backend is missing https://bugzilla.redhat.com/show_bug.cgi?id=1032370 Include the name of the storage backend in the error message instead of just the number. (cherry picked from commit 558ffad55efda22856b65da8cd991cb315822bbf) Signed-off-by: Jiri Denemark --- 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 982cf43..17168a7 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -1117,7 +1117,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.9.0