Commit ef79647e authored by Max Kellermann's avatar Max Kellermann

zeroconf/Avahi: throw exception instead of raising fatal error

parent d3fd8955
......@@ -22,8 +22,8 @@
#include "AvahiPoll.hxx"
#include "ZeroconfInternal.hxx"
#include "Listen.hxx"
#include "system/FatalError.hxx"
#include "util/Domain.hxx"
#include "util/RuntimeError.hxx"
#include "Log.hxx"
#include <avahi-client/client.h>
......@@ -240,7 +240,7 @@ AvahiInit(EventLoop &loop, const char *serviceName)
LogDebug(avahi_domain, "Initializing interface");
if (!avahi_is_valid_service_name(serviceName))
FormatFatalError("Invalid zeroconf_name \"%s\"", serviceName);
throw FormatRuntimeError("Invalid zeroconf_name \"%s\"", serviceName);
avahi_name = avahi_strdup(serviceName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment