client/Response: use Fmt() in FormatError()

This commit is contained in:
Max Kellermann 2021-05-27 15:03:12 +02:00
parent 4ee0a06e18
commit 42239a30eb
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ Response::Error(enum ack code, const char *msg) noexcept
void
Response::FormatError(enum ack code, const char *fmt, ...) noexcept
{
Format("ACK [%i@%u] {%s} ",
(int)code, list_index, command);
Fmt(FMT_STRING("ACK [{}@{}] {{{}}} "),
(int)code, list_index, command);
std::va_list args;
va_start(args, fmt);