diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-16 16:18:35 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-06-16 16:18:35 +0100 |
commit | 70870b1ea242f8fbbab1f7a6e337fa32f5e63926 (patch) | |
tree | f771ab0413d0527ae304daa1496cc36acb6c036e | |
parent | 01ad839337bbb2db66c3bcbd9097b24fd2565a37 (diff) | |
download | folks-70870b1ea242f8fbbab1f7a6e337fa32f5e63926.tar.gz |
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.
-rw-r--r-- | 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 1ebfe493..b5c55446 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) |