[vala] D-Bus: Fix error handling in GDBus servers
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix error handling in GDBus servers
- Date: Mon, 28 Jun 2010 22:00:25 +0000 (UTC)
commit 3190e3465ad98f14578c37973b4c974a7d3b5200
Author: Jürg Billeter <j bitron ch>
Date: Mon Jun 28 23:59:33 2010 +0200
D-Bus: Fix error handling in GDBus servers
codegen/valagdbusservermodule.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valagdbusservermodule.vala b/codegen/valagdbusservermodule.vala
index 57e8550..d72f177 100644
--- a/codegen/valagdbusservermodule.vala
+++ b/codegen/valagdbusservermodule.vala
@@ -303,6 +303,7 @@ public class Vala.GDBusServerModule : GDBusClientModule {
var return_error = new CCodeFunctionCall (new CCodeIdentifier ("g_dbus_method_invocation_return_gerror"));
return_error.add_argument (new CCodeIdentifier ("invocation"));
return_error.add_argument (new CCodeIdentifier ("error"));
+ error_block.add_statement (new CCodeExpressionStatement (return_error));
error_block.add_statement (new CCodeReturnStatement ());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]