We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5129506 commit 9a388d3Copy full SHA for 9a388d3
src/qml.cpp
@@ -27,6 +27,12 @@ fs::path findQmlImportScanner() {
27
28
std::string runQmlImportScanner(const std::vector<std::filesystem::path> &sourcesPaths, const std::vector<fs::path> &qmlImportPaths) {
29
auto qmlImportScannerPath = findQmlImportScanner();
30
+
31
+ if (findQmlImportScanner().empty()) {
32
+ // TODO: come up with some more user friendly logging like it's done for qmake
33
+ throw std::runtime_error("error: qmlimportscanner not found $PATH");
34
+ }
35
36
std::vector<std::string> command{qmlImportScannerPath.string()};
37
38
for (const auto &sourcesPath : sourcesPaths)
0 commit comments