Skip to content

Commit e40c5b4

Browse files
[lsp] Fix format string in Reply (#107480)
PR #105745 requires that `formatv` calls have the correct number of arguments. This call to `Logger::info` was incorrect.
1 parent c5de661 commit e40c5b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Tools/lsp-server-support/Transport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ void Reply::operator()(llvm::Expected<llvm::json::Value> reply) {
7575
transport->reply(std::move(id), std::move(reply));
7676
} else {
7777
llvm::Error error = reply.takeError();
78-
Logger::info("--> reply:{0}({1})", method, id, error);
78+
Logger::info("--> reply:{0}({1}): {2}", method, id, error);
7979
transport->reply(std::move(id), std::move(error));
8080
}
8181
}

0 commit comments

Comments
 (0)