summaryrefslogtreecommitdiff
path: root/src/contacts-app.vala
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2013-08-04 09:57:13 +0200
committerPhilip Withnall <philip@tecnocode.co.uk>2013-08-04 09:57:13 +0200
commitfe2fa59bf2cd0cc072ee08e982dd2a301f8065f6 (patch)
treef489c278f993232c52f4ad131a36b4d88650dd96 /src/contacts-app.vala
parenta79acbdfdf2294d67d8539b7d1d2d79c9142f3ae (diff)
downloadgnome-contacts-fe2fa59bf2cd0cc072ee08e982dd2a301f8065f6.tar.gz
Catch some unhandled errors and print warnings
It may be desirable to propagate these errors further (to the UI), but printing warnings will do for now.
Diffstat (limited to 'src/contacts-app.vala')
-rw-r--r--src/contacts-app.vala10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 225429a..89866ad 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -155,9 +155,13 @@ public class Contacts.App : Gtk.Application {
}
public void show_help () {
- Gtk.show_uri (window.get_screen (),
- "help:gnome-help/contacts",
- Gtk.get_current_event_time ());
+ try {
+ Gtk.show_uri (window.get_screen (),
+ "help:gnome-help/contacts",
+ Gtk.get_current_event_time ());
+ } catch (GLib.Error e1) {
+ warning ("Error showing help: %s", e1.message);
+ }
}
public void show_about () {