[gnome-builder/wip/libide] 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/wip/libide] libide: dont print error message if it matches GGIT_ERROR_NOTFOUND.
- Date: Fri, 27 Feb 2015 01:49:37 +0000 (UTC)
commit 16da427799b6f58ef944b9f700375efdfe4fde11
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]