diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-08-16 09:29:16 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2016-08-17 09:00:59 +0000 |
commit | a8b693501f3e771cffdf3ccf975789bc55d8ce68 (patch) | |
tree | cd7f9a8d70016e3e9c883cc162f3aad496179b47 | |
parent | 6b21520dab1beba361402d478f5ee427949762c5 (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.cpp | 4 |
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)); } |