aboutsummaryrefslogtreecommitdiffstats
path: root/qbs
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2018-01-11 14:15:03 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2018-01-11 13:32:37 +0000
commitb65c13c6a5c1d9447b6b04cef5a14b2204dadcf9 (patch)
treed47d71bb5a613b396a5e36b27b217a8c18e3e87f /qbs
parentf42ea09b74878edc215b317cba08c1f7c7b48a47 (diff)
Improve failure message when usable libclang is not found
Change-Id: Id541206c6b284be7a1068533825c88c9352f9d7f Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'qbs')
-rw-r--r--qbs/modules/libclang/libclang.qbs5
1 files changed, 3 insertions, 2 deletions
diff --git a/qbs/modules/libclang/libclang.qbs b/qbs/modules/libclang/libclang.qbs
index 44096275b1..e4253cc105 100644
--- a/qbs/modules/libclang/libclang.qbs
+++ b/qbs/modules/libclang/libclang.qbs
@@ -55,9 +55,10 @@ Module {
validate: {
if (!clangProbe.found) {
- console.warn("Set LLVM_INSTALL_DIR to build the Clang Code Model."
+ console.warn("No usable libclang version found."
+ + " Set LLVM_INSTALL_DIR to build the Clang Code Model."
+ " For details, see doc/src/editors/creator-clang-codemodel.qdoc.");
- throw "No usable libclang found";
+ throw new Error();
}
}
}