From a885966f30848e660c035a8686499ff197f41ed2 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Fri, 31 Mar 2017 17:47:04 +0200 Subject: Show what mode failed to load. --- source/rofi.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/rofi.c b/source/rofi.c index 5d5aaea6..6a2eeba4 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -197,7 +197,12 @@ static void run_switcher ( ModeMode mode ) // Otherwise check if requested mode is enabled. for ( unsigned int i = 0; i < num_modi; i++ ) { if ( !mode_init ( modi[i] ) ) { - rofi_view_error_dialog ( ERROR_MSG ( "Failed to initialize all the modi." ), ERROR_MSG_MARKUP ); + GString *str= g_string_new ( "Failed to initialize the mode: "); + g_string_append ( str, modi[i]->name ); + g_string_append ( str, "\n"); + + rofi_view_error_dialog ( str->str, ERROR_MSG_MARKUP ); + g_string_free (str, FALSE); return; } } -- cgit v1.2.3