mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Handle notification errors
This commit is contained in:
parent
ff7174db09
commit
79796ca129
@ -309,7 +309,13 @@ _win_notify(const char * const message, int timeout,
|
|||||||
notify_notification_set_urgency(notification, NOTIFY_URGENCY_NORMAL);
|
notify_notification_set_urgency(notification, NOTIFY_URGENCY_NORMAL);
|
||||||
|
|
||||||
GError *error = NULL;
|
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 {
|
} else {
|
||||||
log_error("Libnotify initialisation error.");
|
log_error("Libnotify initialisation error.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user