[seed] Warnings for async callbacks in DBus module



commit 5158c61ab6ca40a06c765ca03fcd540708c0e709
Author: Robert Carr <racarr svn gnome org>
Date:   Mon May 11 17:50:52 2009 -0400

    Warnings for async callbacks in DBus module
---
 modules/dbus/dbus.js  |    3 +--
 modules/dbus/module.c |    3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/dbus/dbus.js b/modules/dbus/dbus.js
index c2b2d91..52f8433 100644
--- a/modules/dbus/dbus.js
+++ b/modules/dbus/dbus.js
@@ -99,8 +99,7 @@ function _logReply(result, exc) {
         log("Ignored reply to dbus method: " + result.toSource());
     }
     if (exc != null) {
-	Seed.print(exc);
-        log("Ignored exception from dbus method: " + exc.toString());
+        log("Ignored exception from dbus method: " + exc.message);
     }
 }
 
diff --git a/modules/dbus/module.c b/modules/dbus/module.c
index 131a9f8..7c35189 100644
--- a/modules/dbus/module.c
+++ b/modules/dbus/module.c
@@ -265,7 +265,10 @@ pending_notify (DBusPendingCall * pending, void *user_data)
 
   if (exception)
 	  argv[1] = exception;
+  exception = NULL;
   seed_closure_invoke_with_context (ctx, closure, &argv[0], 2, &exception);
+  if (exception)
+    seed_closure_warn_exception(closure, ctx, exception);
   seed_context_unref (ctx);
   // TODO: Do something with exception
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]