]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
D-Bus: Fix error handling in GDBus servers
authorJürg Billeter <j@bitron.ch>
Mon, 28 Jun 2010 21:59:33 +0000 (23:59 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 28 Jun 2010 21:59:33 +0000 (23:59 +0200)
codegen/valagdbusservermodule.vala

index 57e8550f9467dfde3064df923b0a9cc7c5dcb5f7..d72f17706c337d3cdcd618f501087cd6942b0e76 100644 (file)
@@ -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 ());