diff options
-rw-r--r-- | clang-tools-extra/clangd/ClangdServer.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/ClangdServer.cpp b/clang-tools-extra/clangd/ClangdServer.cpp index 54c20b57672..44b485b376b 100644 --- a/clang-tools-extra/clangd/ClangdServer.cpp +++ b/clang-tools-extra/clangd/ClangdServer.cpp @@ -360,6 +360,8 @@ void ClangdServer::applyTweak(PathRef File, Range Sel, StringRef TweakID, if (auto Formatted = cleanupAndFormat(InpAST->Inputs.Contents, *Effect->ApplyEdit, Style)) Effect->ApplyEdit = std::move(*Formatted); + else + elog("Failed to format replacements: {0}", Formatted.takeError()); } return CB(std::move(*Effect)); }; |