[folks] tests: Handle some extra errors in the Tracker te sts’ backend



commit 70870b1ea242f8fbbab1f7a6e337fa32f5e63926
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Tue Jun 16 16:18:35 2015 +0100

    tests: Handle some extra errors in the Tracker tests’ backend
    
    The latest version of valac picks up the omission of the catch block for
    generic GLib.Error.

 tests/lib/tracker/backend.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/tracker/backend.vala b/tests/lib/tracker/backend.vala
index 1ebfe49..b5c5544 100644
--- a/tests/lib/tracker/backend.vala
+++ b/tests/lib/tracker/backend.vala
@@ -219,6 +219,10 @@ public class TrackerTest.Backend
         {
           GLib.warning ("Problem with the D-Bus connection : %s\n", e3.message);
         }
+      catch (GLib.Error e4)
+        {
+          GLib.warning ("Problem in general: %s", e4.message);
+        }
 
       return ret;
     }
@@ -292,6 +296,10 @@ public class TrackerTest.Backend
           throw new BackendSetupError.ADD_CONTACT_FAILED
           ("Could not connect to D-Bus service : %s\n", e3.message);
         }
+      catch (GLib.Error e4)
+        {
+          GLib.warning ("Problem in general: %s", e4.message);
+        }
     }
 
   private string _get_insert_query (Gee.HashMap<string, string> contact)


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