summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-05-27 15:03:12 +0200
committerMax Kellermann <max@musicpd.org>2021-05-27 15:05:42 +0200
commit42239a30eb7c9bbfb3a74ddff08fb6906ecba17c (patch)
tree714354de349af455cfd2ff02ddad1c1c422bb9ae
parent4ee0a06e1819f095773b81cc1d2415b4e990cf65 (diff)
client/Response: use Fmt() in FormatError()
-rw-r--r--src/client/Response.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Response.cxx b/src/client/Response.cxx
index fe2c8a500..eeefd549f 100644
--- a/src/client/Response.cxx
+++ b/src/client/Response.cxx
@@ -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);