Skip to content

Commit a264468

Browse files
committed
[SourceKit] Add missing failed() override in computeDiagnostics, fix missing propagation of errors
1 parent 80056c1 commit a264468

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1811,6 +1811,11 @@ static void computeDiagnostics(
18111811
void cancelled() override {
18121812
Receiver(RequestResult<DiagnosticsResult>::cancelled());
18131813
}
1814+
1815+
void failed(StringRef Error) override {
1816+
LOG_WARN_FUNC("diagnostics failed: " << Error);
1817+
Receiver(RequestResult<DiagnosticsResult>::fromError(Error));
1818+
}
18141819
};
18151820

18161821
auto Consumer = std::make_shared<DiagnosticsConsumer>(std::move(Receiver));

0 commit comments

Comments
 (0)