summaryrefslogtreecommitdiff
path: root/libs/ardour/utils.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-11-10 18:13:42 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-11-10 18:13:42 +0000
commitbcf500a3512785380bf7d5dcfe1cfe048a75ec28 (patch)
tree07b10d2558b5e3da473b8ca1634c9b6a66383c4b /libs/ardour/utils.cc
parentf96ccb195828daeec03646ee4013531fe88c87fa (diff)
show all paths discovered when a path is ambiguous (via error<<)
git-svn-id: svn://localhost/ardour2/branches/3.0@10529 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r--libs/ardour/utils.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index c86f62de0b..63125ed8cb 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -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;
}