[gnome-builder/gnome-builder-3-24] jsonrpc: pass proper error to g_task_return_error()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-24] jsonrpc: pass proper error to g_task_return_error()
- Date: Sat, 25 Mar 2017 23:44:57 +0000 (UTC)
commit c1e9327d86dbac05fdc402270a0e1773a0cafa79
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]