diff options
author | Mark Jansen <learn0more@gmail.com> | 2017-04-06 00:10:53 +0200 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2017-04-28 07:33:36 -0400 |
commit | ec94565cb90134dfedd585a45c8266cc2e21ef4c (patch) | |
tree | 35d5a821b92fbd6d5c646881d369578975e3a069 /src/fe-gtk/plugin-notification.c | |
parent | 552b2b1315b45286b063e99510d6d6cb1b6f7575 (diff) |
winrt: Show some exceptions
Diffstat (limited to 'src/fe-gtk/plugin-notification.c')
-rw-r--r-- | src/fe-gtk/plugin-notification.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fe-gtk/plugin-notification.c b/src/fe-gtk/plugin-notification.c index 04a64213..47ba55ab 100644 --- a/src/fe-gtk/plugin-notification.c +++ b/src/fe-gtk/plugin-notification.c @@ -176,8 +176,13 @@ tray_cmd_cb (char *word[], char *word_eol[], gpointer userdata) int notification_plugin_init (hexchat_plugin *plugin_handle, char **plugin_name, char **plugin_desc, char **plugin_version, char *arg) { - if (!notification_backend_init ()) + const char* error = NULL; + if (!notification_backend_init (&error)) + { + if (error) + hexchat_printf(plugin_handle, "Failed loading notification plugin: %s\n", error); return 0; + } ph = plugin_handle; *plugin_name = ""; |