diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/rofi.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; } } |