diff options
Diffstat (limited to 'src/qdoc/jscodemarker.cpp')
-rw-r--r-- | src/qdoc/jscodemarker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qdoc/jscodemarker.cpp b/src/qdoc/jscodemarker.cpp index f283ab485..575ffbb58 100644 --- a/src/qdoc/jscodemarker.cpp +++ b/src/qdoc/jscodemarker.cpp @@ -130,6 +130,10 @@ QString JsCodeMarker::addMarkUp(const QString &code, // unhandled source text can be output. QmlMarkupVisitor visitor(code, pragmas, &engine); QQmlJS::AST::Node::accept(ast, &visitor); + if (visitor.hasError()) { + location.warning(location.fileName() + + tr("Unable to analyze JavaScript. The output is incomplete.")); + } output = visitor.markedUpCode(); } else { location.warning(location.fileName() + |