[gnome-builder] build-manager: return proper error to task



commit 8db3a5dd5cce94a58220a19e8648d5f3dc2a1588
Author: Christian Hergert <chergert redhat com>
Date:   Wed Mar 7 14:30:29 2018 -0800

    build-manager: return proper error to task

 src/libide/buildsystem/ide-build-manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/buildsystem/ide-build-manager.c b/src/libide/buildsystem/ide-build-manager.c
index 1298f329e..6f963df6b 100644
--- a/src/libide/buildsystem/ide-build-manager.c
+++ b/src/libide/buildsystem/ide-build-manager.c
@@ -423,7 +423,7 @@ ide_build_manager_device_get_info_cb (GObject      *object,
       ide_context_warning (context,
                            _("Failed to get device information: %s"),
                            error->message);
-      g_task_return_error (task, g_steal_pointer (&task));
+      g_task_return_error (task, g_steal_pointer (&error));
       IDE_EXIT;
     }
 


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