>From 29435381e7af81d989599630d94c004acf532a40 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 13 Dec 2010 16:49:18 +0200 Subject: Show warning if marshalling in dbus_g_method_return fails --- dbus/dbus-gobject.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dbus/dbus-gobject.c b/dbus/dbus-gobject.c index 6f9d330..c539478 100644 --- a/dbus/dbus-gobject.c +++ b/dbus/dbus-gobject.c @@ -2945,7 +2945,12 @@ dbus_g_method_return (DBusGMethodInvocation *context, ...) g_warning("%s", error); g_free (error); } - _dbus_gvalue_marshal (&iter, &value); + else + { + if (!_dbus_gvalue_marshal (&iter, &value)) + g_warning ("failed to marshal parameter %d for method %s", + i, dbus_message_get_member (reply)); + } } va_end (args); -- 1.7.1.1