Skip to content

Commit

Permalink
[lsp] Fix format string in Reply (#107480)
Browse files Browse the repository at this point in the history
PR #105745 requires that `formatv` calls have the correct number of
arguments. This call to `Logger::info` was incorrect.
  • Loading branch information
AmaranthineCodices authored Sep 6, 2024
1 parent c5de661 commit e40c5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Tools/lsp-server-support/Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void Reply::operator()(llvm::Expected<llvm::json::Value> reply) {
transport->reply(std::move(id), std::move(reply));
} else {
llvm::Error error = reply.takeError();
Logger::info("--> reply:{0}({1})", method, id, error);
Logger::info("--> reply:{0}({1}): {2}", method, id, error);
transport->reply(std::move(id), std::move(error));
}
}
Expand Down

0 comments on commit e40c5b4

Please sign in to comment.