summaryrefslogtreecommitdiffstats
path: root/avahi-client
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-19 12:45:14 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-19 12:45:14 +0000
commit9642bac4b85de24ce62c53ad6a8e2ab4b2dd31ba (patch)
treeca85864b7dc95fec7f02f92b52679aae8dfdf848 /avahi-client
parent6d6776d11fdb11f94331ffe7e1060f1ac555114b (diff)
* Improve and reorganise DBus error handling, see avahi-common/dbus.h
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@354 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client')
-rw-r--r--avahi-client/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/avahi-client/client.c b/avahi-client/client.c
index 90a816f..1159152 100644
--- a/avahi-client/client.c
+++ b/avahi-client/client.c
@@ -27,6 +27,7 @@
#include <avahi-common/dbus.h>
#include <avahi-common/llist.h>
#include <avahi-common/error.h>
+#include <avahi-common/dbus.h>
#include <avahi-common/malloc.h>
#include <avahi-common/dbus-watch-glue.h>
#include <stdlib.h>
@@ -137,9 +138,7 @@ out:
static int translate_dbus_error(const DBusError *error) {
assert(error);
- /*** FIXME! Some more eloquent error translation should happen here */
-
- return AVAHI_ERR_DBUS_ERROR;
+ return avahi_error_dbus_to_number (error->name);
}
static int get_server_state(AvahiClient *client, int *ret_error) {