diff options
Diffstat (limited to 'tools/qmltc/main.cpp')
| -rw-r--r-- | tools/qmltc/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/qmltc/main.cpp b/tools/qmltc/main.cpp index 3d412182ea..afc9cf95dc 100644 --- a/tools/qmltc/main.cpp +++ b/tools/qmltc/main.cpp @@ -291,8 +291,14 @@ int main(int argc, char **argv) QString(), QString(), QString()); passMan->analyze(QQmlJSScope::createQQmlSAElement(visitor.result())); - if (logger.hasErrors()) + if (logger.hasErrors()) { + if (visitor.hasSeenCustomParsers()) { + logger.log(QStringLiteral("qmltc does not support custom parsers such as ListModel or " + "old forms of Connections and PropertyChanges."), + qmlCompiler, QQmlJS::SourceLocation()); + } return EXIT_FAILURE; + } QList<QQmlJS::DiagnosticMessage> warnings = importer.takeGlobalWarnings(); if (!warnings.isEmpty()) { |
