From 36bb41d0821ccc1dbdddaf5ef32fb4fa5be3d225 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 19:11:44 +0100 Subject: [PATCH] telephony: check errors in showing notification --- src/telephony.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/telephony.vala b/src/telephony.vala index 1093cb1..96b051b 100644 --- a/src/telephony.vala +++ b/src/telephony.vala @@ -78,7 +78,11 @@ class TelephonyHandler : Object, PacketHandlerInterface { var notif = new Notify.Notification(summary, number, "dialog-information"); - notif.show(); + try { + notif.show(); + } catch (Error e) { + critical("failed to show notification: %s", e.message); + } } }