show all paths discovered when a path is ambiguous (via error<<)
[ardour.git] / libs / ardour / utils.cc
index c86f62de0b0a49c09e3bd0aed37f27fd3343072f..63125ed8cb8652ab0adafbe79489fa00d872c95c 100644 (file)
@@ -294,7 +294,14 @@ path_expand (string path)
        }
 
        if (expansion.we_wordc > 1) {
-               error << string_compose (_("path (%1) is ambiguous"), path) << endmsg;
+               string all;
+               for (unsigned int i = 0; i < expansion.we_wordc; ++i) {
+                       if (i > 0) {
+                               all += " | ";
+                       } 
+                       all += expansion.we_wordv[i];
+               }
+               error << string_compose (_("path (%1) is ambiguous: %2"), path, all) << endmsg;
                goto out;
        }