Better error message when importing file that is not found

This commit is contained in:
Martin Carlberg committed 2012-12-20 14:23:54 +01:00
1 parent 227c696750
commit 26be5bf264
2 files changed
+7 -1

No files matched your search

+4 -1
View File
@@ -496,7 +496,10 @@ Executable.fileExecutableSearcherForURL = function(/*CFURL*/ referenceURL)
function completed(/*StaticResource*/ aStaticResource)
{
if (!aStaticResource)
throw new Error("Could not load file at " + aURL);
{
var compilingFileUrl = ObjJCompiler && ObjJCompiler.currentCompileFile ? ObjJCompiler.currentCompileFile : null;
throw new Error("Could not load file at " + aURL + (compilingFileUrl ? " when compiling " + compilingFileUrl : " Martin"));
}
cachedFileExecutableSearchResults[cacheUID] = aStaticResource;