1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

Handle notification errors

This commit is contained in:
James Booth 2012-09-24 21:03:05 +01:00
parent ff7174db09
commit 79796ca129

View File

@ -309,7 +309,13 @@ _win_notify(const char * const message, int timeout,
notify_notification_set_urgency(notification, NOTIFY_URGENCY_NORMAL);
GError *error = NULL;
notify_notification_show(notification, &error);
gboolean notify_success = notify_notification_show(notification, &error);
if (!notify_success) {
log_error("Error sending desktop notification:");
log_error(" -> Message : %s", message);
log_error(" -> Error : %s", error->message);
}
} else {
log_error("Libnotify initialisation error.");
}