[gnome-builder] git: strip dbus prefix from gerror
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] git: strip dbus prefix from gerror
- Date: Sat, 27 Apr 2019 23:58:55 +0000 (UTC)
commit 34e66ef146de7c2cdf0e6466de4a8bed5da933f3
Author: Christian Hergert <chergert redhat com>
Date: Sat Apr 27 16:58:40 2019 -0700
git: strip dbus prefix from gerror
src/plugins/git/gbp-git-vcs-cloner.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/git/gbp-git-vcs-cloner.c b/src/plugins/git/gbp-git-vcs-cloner.c
index 91454a4a9..44198577c 100644
--- a/src/plugins/git/gbp-git-vcs-cloner.c
+++ b/src/plugins/git/gbp-git-vcs-cloner.c
@@ -167,9 +167,12 @@ gbp_git_vcs_cloner_clone_cb (GObject *object,
g_assert (IDE_IS_TASK (task));
if (!ipc_git_service_call_clone_finish (service, &git_location, result, &error))
- ide_task_return_error (task, g_steal_pointer (&error));
- else
- ide_task_return_boolean (task, TRUE);
+ {
+ g_dbus_error_strip_remote_error (error);
+ ide_task_return_error (task, g_steal_pointer (&error));
+ }
+
+ ide_task_return_boolean (task, TRUE);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]