Commit a6ae570c authored by Christian Kamm's avatar Christian Kamm

QmlJS: Move 'file not found' error message from Bind to Link.

Change-Id: I701fc179f377581b87e31630eaa4231688152f5e
Reviewed-on: default avatarLeandro T. C. Melo <>
parent 8f5436c4
......@@ -278,8 +278,6 @@ bool Bind::visit(UiImport *ast)
else if (importFileInfo.isDir())
type = ImportInfo::DirectoryImport;
else {
errorMessage(ast, tr("file or directory not found")));
type = ImportInfo::UnknownFileImport;
......@@ -221,6 +221,10 @@ void Link::populateImportedTypes(Imports *imports, Document::Ptr doc)
case ImportInfo::LibraryImport:
import = importNonFile(doc, info);
case ImportInfo::UnknownFileImport:
error(doc, info.ast()->fileNameToken,
tr("file or directory not found"));
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