[folks] tracker: catch GLib.SpawnError when getting a connection



commit 1cfbeb84986f3e1072387a903b08acdd251b074d
Author: Raul Gutierrez Segales <rgs collabora co uk>
Date:   Mon Aug 29 10:49:56 2011 +0100

    tracker: catch GLib.SpawnError when getting a connection

 tests/lib/tracker/backend.vala |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/tests/lib/tracker/backend.vala b/tests/lib/tracker/backend.vala
index bffba10..942052e 100644
--- a/tests/lib/tracker/backend.vala
+++ b/tests/lib/tracker/backend.vala
@@ -255,6 +255,11 @@ public class TrackerTest.Backend
           throw new BackendSetupError.ADD_CONTACT_FAILED
           ("Error fetching SPARQL connection handler : %s\n", e3.message);
         }
+      catch (GLib.SpawnError e4)
+        {
+          throw new BackendSetupError.ADD_CONTACT_FAILED
+          ("Error fetching SPARQL connection handler : %s\n", e4.message);
+        }
     }
 
   private void _add_contacts () throws BackendSetupError



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