lib/fmt/RuntimeError: new library

Replacing FormatRuntimeError().
This commit is contained in:
Max Kellermann
2022-11-28 21:58:21 +01:00
parent 45b13fc2a6
commit fa58db798b
105 changed files with 551 additions and 502 deletions

View File

@@ -22,7 +22,7 @@
#include "lib/avahi/ErrorHandler.hxx"
#include "lib/avahi/Publisher.hxx"
#include "lib/avahi/Service.hxx"
#include "util/RuntimeError.hxx"
#include "lib/fmt/RuntimeError.hxx"
#include "Log.hxx"
#include <avahi-common/domain.h>
@@ -56,8 +56,8 @@ AvahiInit(EventLoop &event_loop, const char *service_name,
const char *service_type, unsigned port)
{
if (!avahi_is_valid_service_name(service_name))
throw FormatRuntimeError("Invalid zeroconf_name \"%s\"",
service_name);
throw FmtRuntimeError("Invalid zeroconf_name \"{}\"",
service_name);
auto client = shared_avahi_client.lock();
if (!client)