[seed] DBus: Implement conversion of DBus errors to JavaScript exceptions in async call replies
- From: Robert Carr <racarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [seed] DBus: Implement conversion of DBus errors to JavaScript exceptions in async call replies
- Date: Mon, 11 May 2009 18:07:22 -0400 (EDT)
commit d48988b558f4bfe0e2eb700eac3dce2ec31653ae
Author: Robert Carr <racarr svn gnome org>
Date: Mon May 11 18:06:47 2009 -0400
DBus: Implement conversion of DBus errors to JavaScript exceptions in async call replies
---
modules/dbus/module.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/dbus/module.c b/modules/dbus/module.c
index 38c1dfb..fac6a7b 100644
--- a/modules/dbus/module.c
+++ b/modules/dbus/module.c
@@ -182,6 +182,7 @@ complete_call (SeedContext ctx,
if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
{
+ dbus_set_error_from_message (derror, reply);
seed_make_exception (ctx, exception, "DBusError",
"DBus error: %s: %s",
derror->name, derror->message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]