Commit 038f18ea authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann

QmlJS: add import name to the missing error message

Change-Id: Id973d442e1770f453b16723f9cf75ee2169b33ad
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent a2fd5368
......@@ -403,15 +403,15 @@ Import LinkPrivate::importNonFile(Document::Ptr doc, const ImportInfo &importInf
error(doc, locationFromRange(importInfo.ast()->firstSourceLocation(),
importInfo.ast()->lastSourceLocation()),
Link::tr(
"QML module not found.\n\n"
"QML module not found(%1).\n\n"
"Import paths:\n"
"%1\n\n"
"%2\n\n"
"For qmake projects, use the QML_IMPORT_PATH variable to add import paths.\n"
"For Qbs projects, declare and set a qmlImportPaths property in your product "
"to add import paths.\n"
"For qmlproject projects, use the importPaths property to add import paths.\n"
"For CMake projects, make sure QML_IMPORT_PATH variable is in CMakeCache.txt.\n").arg(
importPaths.join(QLatin1Char('\n'))));
importInfo.name(), importPaths.join(QLatin1Char('\n'))));
}
return import;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment