From 9447f3c5fb6d0014d6d0856777c638d904365025 Mon Sep 17 00:00:00 2001
From: Peter Krempa <pkrempa@redhat.com>
Date: Tue, 21 Apr 2015 17:48:17 +0200
Subject: [PATCH] util: storage: Add hint to error message that indexed access
 was used

---
 src/util/virstoragefile.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c
index 46aff92304..c9d3977f30 100644
--- a/src/util/virstoragefile.c
+++ b/src/util/virstoragefile.c
@@ -1390,7 +1390,8 @@ virStorageFileChainLookup(virStorageSourcePtr chain,
  error:
     if (idx) {
         virReportError(VIR_ERR_INVALID_ARG,
-                       _("could not find backing store %u in chain for '%s'"),
+                       _("could not find backing store index %u in chain "
+                         "for '%s'"),
                        idx, NULLSTR(start));
     } else if (name) {
         if (startFrom)
-- 
GitLab