[gnome-builder] libide: dont print error message if it matches GGIT_ERROR_NOTFOUND.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide: dont print error message if it matches GGIT_ERROR_NOTFOUND.
- Date: Mon, 23 Mar 2015 23:45:20 +0000 (UTC)
commit 553fd14e437103bc64e17d41773bfd075fdae73d
Author: Christian Hergert <christian hergert me>
Date: Thu Feb 26 17:49:31 2015 -0800
libide: dont print error message if it matches GGIT_ERROR_NOTFOUND.
This is a pretty common occurance, not that useful to print to console.
libide/git/ide-git-buffer-change-monitor.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libide/git/ide-git-buffer-change-monitor.c b/libide/git/ide-git-buffer-change-monitor.c
index d2baee8..7d31e67 100644
--- a/libide/git/ide-git-buffer-change-monitor.c
+++ b/libide/git/ide-git-buffer-change-monitor.c
@@ -207,7 +207,8 @@ ide_git_buffer_change_monitor__calculate_cb (GObject *object,
if (!ret)
{
- g_message ("%s", error->message);
+ if (!g_error_matches (error, GGIT_ERROR, GGIT_ERROR_NOTFOUND))
+ g_message ("%s", error->message);
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]