QmlJS: add import name to the missing error message

Change-Id: Id973d442e1770f453b16723f9cf75ee2169b33ad
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@theqtcompany.com>
This commit is contained in:
Tim Jenssen
2016-10-05 12:12:16 +02:00
committed by Thomas Hartmann
parent a2fd536846
commit 038f18ea9c

View File

@@ -403,15 +403,15 @@ Import LinkPrivate::importNonFile(Document::Ptr doc, const ImportInfo &importInf
error(doc, locationFromRange(importInfo.ast()->firstSourceLocation(), error(doc, locationFromRange(importInfo.ast()->firstSourceLocation(),
importInfo.ast()->lastSourceLocation()), importInfo.ast()->lastSourceLocation()),
Link::tr( Link::tr(
"QML module not found.\n\n" "QML module not found(%1).\n\n"
"Import paths:\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 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 " "For Qbs projects, declare and set a qmlImportPaths property in your product "
"to add import paths.\n" "to add import paths.\n"
"For qmlproject projects, use the importPaths property 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( "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; return import;