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

Change-Id: I701fc179f377581b87e31630eaa4231688152f5e
Reviewed-on: http://codereview.qt.nokia.com/2813
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
This commit is contained in:
Christian Kamm
2011-08-10 09:00:40 +02:00
parent 8f5436c4af
commit a6ae570c31
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}