changeset 13759:a849cf259d00

[gaim-migrate @ 16170] Hopefully provide a better message in the future when dbus doesn't know about an object that you're trying to pass to signal functions and stuff committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 10 May 2006 02:35:09 +0000
parents ff94569010f5
children fb177706f6ba
files src/dbus-server.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dbus-server.c	Wed May 10 02:27:09 2006 +0000
+++ b/src/dbus-server.c	Wed May 10 02:35:09 2006 +0000
@@ -96,7 +96,12 @@
 
 gint gaim_dbus_pointer_to_id(gpointer node) {
     gint id = GPOINTER_TO_INT(g_hash_table_lookup(map_node_id, node));
-    g_return_val_if_fail(id || node == NULL, 0);
+	if ((id == 0) && (node != NULL))
+	{
+		gaim_debug_warning("dbus",
+				"Need to register an object with the dbus subsystem.\n");
+		g_return_if_reached();
+	}
     return id;
 }