aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@qt.io>2016-08-16 09:29:16 -0700
committerJake Petroules <jake.petroules@qt.io>2016-08-17 09:00:59 +0000
commita8b693501f3e771cffdf3ccf975789bc55d8ce68 (patch)
treecd7f9a8d70016e3e9c883cc162f3aad496179b47
parent6b21520dab1beba361402d478f5ee427949762c5 (diff)
Improve error message for installing multiple files to the same path
This is frequently a result of omitting a qbs.installSourceBase binding. Change-Id: Ibd723f759967abac80914267ec8876a72997ea31 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--src/lib/corelib/buildgraph/productinstaller.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/productinstaller.cpp b/src/lib/corelib/buildgraph/productinstaller.cpp
index 5ecb0d3de..d7d2eda2b 100644
--- a/src/lib/corelib/buildgraph/productinstaller.cpp
+++ b/src/lib/corelib/buildgraph/productinstaller.cpp
@@ -202,7 +202,9 @@ void ProductInstaller::copyFile(const Artifact *artifact)
}
if (m_targetFilePathsMap.contains(targetFilePath)) {
- handleError(Tr::tr("Cannot install files '%1' and '%2' to the same location '%3'.")
+ handleError(Tr::tr("Cannot install files '%1' and '%2' to the same location '%3'. If you "
+ "are attempting to install a directory hierarchy, consider using "
+ "the qbs.installSourceBase property.")
.arg(artifact->filePath(), m_targetFilePathsMap[targetFilePath],
targetFilePath));
}