summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-03-31 17:47:04 +0200
committerDave Davenport <qball@gmpclient.org>2017-03-31 17:47:04 +0200
commita885966f30848e660c035a8686499ff197f41ed2 (patch)
tree87b620b99a5d7835d4480321d71b3f34448451ff
parentb4c9bad2670c7cbdb2e26b384e18104d568cde99 (diff)
Show what mode failed to load.
-rw-r--r--source/rofi.c7
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;
}
}