summaryrefslogtreecommitdiff
path: root/src/zeroconf
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-11 09:38:08 +0200
committerMax Kellermann <max@musicpd.org>2017-08-11 09:38:08 +0200
commitef79647e855abddb845cafb99bda98b3f0d4fddc (patch)
tree9740f0aa7c077a81a064f016f456e49a8f0e0fad /src/zeroconf
parentd3fd89552f9209134c8ba753fb81446910097d54 (diff)
zeroconf/Avahi: throw exception instead of raising fatal error
Diffstat (limited to 'src/zeroconf')
-rw-r--r--src/zeroconf/ZeroconfAvahi.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zeroconf/ZeroconfAvahi.cxx b/src/zeroconf/ZeroconfAvahi.cxx
index 599357f4a..f6caa7884 100644
--- a/src/zeroconf/ZeroconfAvahi.cxx
+++ b/src/zeroconf/ZeroconfAvahi.cxx
@@ -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);