[tracker] tracker-needle: Fixed query catch conditions to avoid build warnings
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-needle: Fixed query catch conditions to avoid build warnings
- Date: Fri, 31 Dec 2010 17:53:47 +0000 (UTC)
commit 3b32b00df740911da0d3a51cb917e5863bedc573
Author: Martyn Russell <martyn lanedo com>
Date: Fri Dec 31 17:52:59 2010 +0000
tracker-needle: Fixed query catch conditions to avoid build warnings
src/tracker-needle/tracker-query.vala | 4 ++++
src/tracker-needle/tracker-taglist.vala | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-needle/tracker-query.vala b/src/tracker-needle/tracker-query.vala
index d3e4d0a..2c5ab70 100644
--- a/src/tracker-needle/tracker-query.vala
+++ b/src/tracker-needle/tracker-query.vala
@@ -47,6 +47,8 @@ public class Tracker.Query {
warning ("Could not get Sparql connection: %s", ea.message);
} catch (GLib.IOError eb) {
warning ("Could not get Sparql connection: %s", eb.message);
+ } catch (GLib.DBusError ec) {
+ warning ("Could not get Sparql connection: %s", ec.message);
}
}
@@ -221,6 +223,8 @@ public class Tracker.Query {
warning ("Could not run Sparql query: %s", ea.message);
} catch (GLib.IOError eb) {
warning ("Could not run Sparql query: %s", eb.message);
+ } catch (GLib.DBusError ec) {
+ warning ("Could not run Sparql query: %s", ec.message);
}
debug ("Done");
diff --git a/src/tracker-needle/tracker-taglist.vala b/src/tracker-needle/tracker-taglist.vala
index 73e735b..a357560 100644
--- a/src/tracker-needle/tracker-taglist.vala
+++ b/src/tracker-needle/tracker-taglist.vala
@@ -83,6 +83,8 @@ public class Tracker.TagList : ScrolledWindow {
} catch (GLib.IOError eb) {
warning ("Could not get Sparql connection: %s", eb.message);
return;
+ } catch (GLib.DBusError ec) {
+ warning ("Could not run Sparql query: %s", ec.message);
}
get_tags.begin ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]