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: http://codereview.qt.nokia.com/2813Reviewed-by: default avatarLeandro T. C. Melo <leandro.melo@nokia.com>
parent 8f5436c4
......@@ -278,8 +278,6 @@ bool Bind::visit(UiImport *ast)
else if (importFileInfo.isDir())
type = ImportInfo::DirectoryImport;
else {
_diagnosticMessages->append(
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);
break;
case ImportInfo::UnknownFileImport:
error(doc, info.ast()->fileNameToken,
tr("file or directory not found"));
break;
default:
break;
}
......
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