[grilo/mocking: 10/27] log: Don't barf about missing	grl-mock-data.ini all the time
- From: Mathias Hasselmann <hasselmm src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [grilo/mocking: 10/27] log: Don't barf about missing	grl-mock-data.ini all the time
- Date: Mon, 22 Oct 2012 16:29:43 +0000 (UTC)
commit 7068603dda62e0b979027e3e7783d34342f0691b
Author: Mathias Hasselmann <mathias openismus com>
Date:   Fri Oct 12 01:53:56 2012 +0200
    log: Don't barf about missing grl-mock-data.ini all the time
 libs/net/grl-net-mock.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libs/net/grl-net-mock.c b/libs/net/grl-net-mock.c
index 328164c..c847e1d 100644
--- a/libs/net/grl-net-mock.c
+++ b/libs/net/grl-net-mock.c
@@ -205,7 +205,9 @@ void init_mock_requester (GrlNetWc *self)
                                G_KEY_FILE_NONE,
                                &error);
     if (error) {
-      GRL_WARNING ("Failed to load default mock file: %s", error->message);
+      if (!g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT))
+        GRL_WARNING ("Failed to load default mock file: %s", error->message);
+
       g_error_free (error);
 
       g_key_file_unref (config);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]