[gnome-builder] jsonrpc: pass proper error to g_task_return_error()



commit 8b3c156f1c8b0819932fb960e694b822af2633aa
Author: Christian Hergert <chergert redhat com>
Date:   Sat Mar 25 16:43:02 2017 -0700

    jsonrpc: pass proper error to g_task_return_error()

 contrib/jsonrpc-glib/jsonrpc-client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/jsonrpc-glib/jsonrpc-client.c b/contrib/jsonrpc-glib/jsonrpc-client.c
index 3ec9732..d6e37de 100644
--- a/contrib/jsonrpc-glib/jsonrpc-client.c
+++ b/contrib/jsonrpc-glib/jsonrpc-client.c
@@ -1247,7 +1247,7 @@ jsonrpc_client_reply_cb (GObject      *object,
   g_assert (G_IS_TASK (task));
 
   if (!jsonrpc_output_stream_write_message_finish (stream, result, &error))
-    g_task_return_error (task, g_steal_pointer (&task));
+    g_task_return_error (task, g_steal_pointer (&error));
   else
     g_task_return_boolean (task, TRUE);
 }


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