[gnome-builder] deviced: fix invalid error propagation



commit efe3d846fce0a20c18f8f59bb654caea264265da
Author: Christian Hergert <chergert redhat com>
Date:   Thu Jun 7 14:38:55 2018 -0700

    deviced: fix invalid error propagation

 src/plugins/deviced/gbp-deviced-deploy-strategy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/deviced/gbp-deviced-deploy-strategy.c 
b/src/plugins/deviced/gbp-deviced-deploy-strategy.c
index 24f18024b..584e8f6e9 100644
--- a/src/plugins/deviced/gbp-deviced-deploy-strategy.c
+++ b/src/plugins/deviced/gbp-deviced-deploy-strategy.c
@@ -284,7 +284,7 @@ deploy_commit_cb (GObject      *object,
   state = ide_task_get_task_data (task);
 
   if (!ide_build_pipeline_build_finish (pipeline, result, &error))
-    ide_task_return_error (task, g_steal_pointer (&task));
+    ide_task_return_error (task, g_steal_pointer (&error));
   else
     gbp_deviced_device_get_commit_async (state->device,
                                          state->app_id,


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