[ModuleInterface] Emit error when we fail to find a dependency.

This commit is contained in:
Graydon Hoare
2018-11-05 15:14:11 -08:00
parent 3aab6fd5f3
commit be7fcfdc2d
2 changed files with 6 additions and 0 deletions

View File

@@ -266,6 +266,9 @@ static bool buildSwiftModuleFromSwiftInterface(
for (auto const &Dep : DepNames) {
auto DepStatus = FS.status(Dep);
if (!DepStatus) {
Diags.diagnose(SourceLoc(),
diag::missing_dependency_of_parseable_module_interface,
Dep, InPath, DepStatus.getError().message());
SubError = true;
return;
}