mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ModuleInterface] Emit error when we fail to find a dependency.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user